hotfix: update profile ID in crawl template

This commit is contained in:
sua yoo 2022-04-20 19:40:22 -07:00
parent 38869cdd24
commit cb80c6767e
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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) {

View File

@ -54,7 +54,7 @@ export type CrawlTemplate = {
inactive: boolean;
config: CrawlConfig;
scale: number;
profileId: string | null;
profileid: string | null;
profileName: string | null;
};