mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix callback return types
This commit is contained in:
@@ -1340,14 +1340,14 @@ function registerWorldInfoSlashCommands() {
|
|||||||
|
|
||||||
async function getGlobalBooksCallback() {
|
async function getGlobalBooksCallback() {
|
||||||
if (!selected_world_info?.length) {
|
if (!selected_world_info?.length) {
|
||||||
return [];
|
return JSON.stringify([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
let entries = selected_world_info.slice();
|
let entries = selected_world_info.slice();
|
||||||
|
|
||||||
console.debug(`[WI] Selected global world info has ${entries.length} entries`, selected_world_info);
|
console.debug(`[WI] Selected global world info has ${entries.length} entries`, selected_world_info);
|
||||||
|
|
||||||
return entries;
|
return JSON.stringify(entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||||
|
Reference in New Issue
Block a user