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,
});
if (crawlId) {
this.navTo(`/orgs/${this.orgId}/artifacts/crawl/${crawlId}`);
} else {
this.navTo(
`/orgs/${this.orgId}/workflows/crawl/${this.configId || data.added}`
);
}
this.navTo(
`/orgs/${this.orgId}/workflows/crawl/${this.configId || data.added}${
crawlId ? "#watch" : ""
}`
);
} catch (e: any) {
if (e?.isApiError) {
const isConfigError = ({ loc }: any) =>