hotfix: update profile ID in crawl template
This commit is contained in:
		
							parent
							
								
									38869cdd24
								
							
						
					
					
						commit
						cb80c6767e
					
				@ -591,10 +591,10 @@ export class CrawlTemplatesDetail extends LiteElement {
 | 
			
		||||
        <div class="text-sm text-0-600">${msg("Browser Profile")}</div>
 | 
			
		||||
        ${this.crawlTemplate
 | 
			
		||||
          ? html`
 | 
			
		||||
              ${this.crawlTemplate.profileId
 | 
			
		||||
              ${this.crawlTemplate.profileid
 | 
			
		||||
                ? html`<a
 | 
			
		||||
                    class="font-medium text-neutral-700 hover:text-neutral-900"
 | 
			
		||||
                    href=${`/archives/${this.archiveId}/browser-profiles/profile/${this.crawlTemplate.profileId}`}
 | 
			
		||||
                    href=${`/archives/${this.archiveId}/browser-profiles/profile/${this.crawlTemplate.profileid}`}
 | 
			
		||||
                    @click=${this.navLink}
 | 
			
		||||
                  >
 | 
			
		||||
                    <sl-icon
 | 
			
		||||
 | 
			
		||||
@ -19,7 +19,7 @@ export type NewCrawlTemplate = {
 | 
			
		||||
  crawlTimeout?: number;
 | 
			
		||||
  scale: number;
 | 
			
		||||
  config: CrawlConfig;
 | 
			
		||||
  profileId: string;
 | 
			
		||||
  profileid: string;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const initialValues = {
 | 
			
		||||
@ -581,7 +581,7 @@ export class CrawlTemplatesNew extends LiteElement {
 | 
			
		||||
      runNow: this.isRunNow,
 | 
			
		||||
      crawlTimeout: crawlTimeoutMinutes ? +crawlTimeoutMinutes * 60 : 0,
 | 
			
		||||
      scale: +scale,
 | 
			
		||||
      profileId: formData.get("profileId") as string,
 | 
			
		||||
      profileid: this.selectedProfile?.id,
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    if (this.isConfigCodeView) {
 | 
			
		||||
 | 
			
		||||
@ -54,7 +54,7 @@ export type CrawlTemplate = {
 | 
			
		||||
  inactive: boolean;
 | 
			
		||||
  config: CrawlConfig;
 | 
			
		||||
  scale: number;
 | 
			
		||||
  profileId: string | null;
 | 
			
		||||
  profileid: string | null;
 | 
			
		||||
  profileName: string | null;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user