mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-13 10:30:14 +01:00
Handle 'object' case as indexOf
This commit is contained in:
parent
284bac9b49
commit
639c0235f9
@ -6251,6 +6251,8 @@ export function setCharacterId(value) {
|
||||
this_chid = !isNaN(parseInt(value)) ? value : undefined;
|
||||
break;
|
||||
case 'object':
|
||||
this_chid = characters.indexOf(value) !== -1 ? String(characters.indexOf(value)) : undefined;
|
||||
break;
|
||||
case 'undefined':
|
||||
this_chid = undefined;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user