TextgenSettings: Fix JSON schema fallback
Did not fall back if the provided string was empty, resulting in errors Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
42e1ade148
commit
b8b49f0012
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue