From b1f68d886c4e49168d07f902ad2c3b0b3aa0e44c Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 7 Dec 2023 18:45:34 +0200 Subject: [PATCH] Fix WI field access for UID = 0 --- public/scripts/world-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index d29cbe222..9810a47f4 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -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');