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>
|
<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
|
||||||
|
@ -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) {
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user