Fix unable to save edits to simple view (#185)
This commit is contained in:
parent
f2f67c34af
commit
0fe54653be
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user