From 043eead149d75f056879329aa3c4009669dbccd5 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 28 Jun 2024 08:06:33 +0000 Subject: [PATCH] Don't show empty toasts in slash command executor --- public/scripts/slash-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 9c79ab46d..8284b17f8 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -3296,7 +3296,7 @@ export async function executeSlashCommandsOnChatInput(text, options = {}) { result = new SlashCommandClosureResult(); result.isError = true; result.errorMessage = e.message; - if (e.cause !== 'abort') { + if (e.cause !== 'abort' && e.message) { toastr.error(e.message); } } finally {