mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-15 11:30:09 +01:00
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…
x
Reference in New Issue
Block a user