Fix unable to save edits to simple view (#185)

This commit is contained in:
sua yoo 2022-03-04 16:17:57 -08:00 committed by GitHub
parent f2f67c34af
commit 0fe54653be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1114,8 +1114,8 @@ export class CrawlTemplatesDetail extends LiteElement {
const configValue = formData.get("config") as string;
let config: CrawlConfig;
if (configValue) {
if (this.invalidSeedsJsonMessage) return;
if (this.isSeedsJsonView) {
if (!configValue || this.invalidSeedsJsonMessage) return;
config = JSON.parse(configValue) as CrawlConfig;
} else {