mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-02 20:36:49 +01:00
Fix WI field access for UID = 0
This commit is contained in:
parent
72adb4c8aa
commit
b1f68d886c
@ -295,7 +295,7 @@ function registerWorldInfoSlashCommands() {
|
||||
return '';
|
||||
}
|
||||
|
||||
const entry = entries.find(x => x.uid === uid);
|
||||
const entry = entries.find(x => String(x.uid) === String(uid));
|
||||
|
||||
if (!entry) {
|
||||
toastr.warning('Valid UID is required');
|
||||
|
Loading…
x
Reference in New Issue
Block a user