fix: navigate to watch on new crawl work

follows #720
This commit is contained in:
sua yoo 2023-04-25 14:30:41 -07:00
parent 7888c4fde3
commit 937ad4fe08
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567

View File

@ -1947,13 +1947,11 @@ https://archiveweb.page/images/${"logo.svg"}`}
duration: 8000, duration: 8000,
}); });
if (crawlId) { this.navTo(
this.navTo(`/orgs/${this.orgId}/artifacts/crawl/${crawlId}`); `/orgs/${this.orgId}/workflows/crawl/${this.configId || data.added}${
} else { crawlId ? "#watch" : ""
this.navTo( }`
`/orgs/${this.orgId}/workflows/crawl/${this.configId || data.added}` );
);
}
} catch (e: any) { } catch (e: any) {
if (e?.isApiError) { if (e?.isApiError) {
const isConfigError = ({ loc }: any) => const isConfigError = ({ loc }: any) =>