mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02: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:
@ -568,7 +568,7 @@ jQuery(function () {
|
|||||||
const json_schema_string = String($(this).val());
|
const json_schema_string = String($(this).val());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
settings.json_schema = JSON.parse(json_schema_string ?? '{}');
|
settings.json_schema = JSON.parse(json_schema_string || '{}');
|
||||||
} catch {
|
} catch {
|
||||||
// Ignore errors from here
|
// Ignore errors from here
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user