diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index f871434a3..4f8156a38 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -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 }