Merge pull request #2054 from bdashore3/json-schema

JSON schema fixes
This commit is contained in:
Cohee 2024-04-10 10:41:22 +03:00 committed by GitHub
commit 0783264900
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ jQuery(function () {
const json_schema_string = String($(this).val());
try {
settings.json_schema = JSON.parse(json_schema_string ?? '{}');
settings.json_schema = JSON.parse(json_schema_string || '{}');
} catch {
// Ignore errors from here
}