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> <div class="text-sm text-0-600">${msg("Browser Profile")}</div>
${this.crawlTemplate ${this.crawlTemplate
? html` ? html`
${this.crawlTemplate.profileId ${this.crawlTemplate.profileid
? html`<a ? html`<a
class="font-medium text-neutral-700 hover:text-neutral-900" 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} @click=${this.navLink}
> >
<sl-icon <sl-icon

View File

@ -19,7 +19,7 @@ export type NewCrawlTemplate = {
crawlTimeout?: number; crawlTimeout?: number;
scale: number; scale: number;
config: CrawlConfig; config: CrawlConfig;
profileId: string; profileid: string;
}; };
const initialValues = { const initialValues = {
@ -581,7 +581,7 @@ export class CrawlTemplatesNew extends LiteElement {
runNow: this.isRunNow, runNow: this.isRunNow,
crawlTimeout: crawlTimeoutMinutes ? +crawlTimeoutMinutes * 60 : 0, crawlTimeout: crawlTimeoutMinutes ? +crawlTimeoutMinutes * 60 : 0,
scale: +scale, scale: +scale,
profileId: formData.get("profileId") as string, profileid: this.selectedProfile?.id,
}; };
if (this.isConfigCodeView) { if (this.isConfigCodeView) {

View File

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