mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Handle 'object' case as indexOf
This commit is contained in:
@ -6251,6 +6251,8 @@ export function setCharacterId(value) {
|
|||||||
this_chid = !isNaN(parseInt(value)) ? value : undefined;
|
this_chid = !isNaN(parseInt(value)) ? value : undefined;
|
||||||
break;
|
break;
|
||||||
case 'object':
|
case 'object':
|
||||||
|
this_chid = characters.indexOf(value) !== -1 ? String(characters.indexOf(value)) : undefined;
|
||||||
|
break;
|
||||||
case 'undefined':
|
case 'undefined':
|
||||||
this_chid = undefined;
|
this_chid = undefined;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user