Fix callback return types

75d0cf828a1615b62283f430d3d777abbbabf2ab

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Showing whitespace changes
public/scripts/world-info.js+2 -2
@@ -1340,14 +1340,14 @@ function registerWorldInfoSlashCommands() {
13401340
1341 async function getGlobalBooksCallback() {1341 async function getGlobalBooksCallback() {
1342 if (!selected_world_info?.length) {1342 if (!selected_world_info?.length) {
1343 return [];1343 return JSON.stringify([]);
1344 }1344 }
13451345
1346 let entries = selected_world_info.slice();1346 let entries = selected_world_info.slice();
13471347
1348 console.debug(`[WI] Selected global world info has ${entries.length} entries`, selected_world_info);1348 console.debug(`[WI] Selected global world info has ${entries.length} entries`, selected_world_info);
13491349
1350 return entries;1350 return JSON.stringify(entries);
1351 }1351 }
13521352
1353 SlashCommandParser.addCommandObject(SlashCommand.fromProps({1353 SlashCommandParser.addCommandObject(SlashCommand.fromProps({