From 945db82c4117e616f4f165b3c279d12a6f92aefe Mon Sep 17 00:00:00 2001 From: theo Date: Tue, 23 Jul 2024 08:56:25 +0200 Subject: [PATCH] toaster.js - set default title as a space character --- force-app/main/default/lwc/bolt/toaster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/force-app/main/default/lwc/bolt/toaster.js b/force-app/main/default/lwc/bolt/toaster.js index ff1e59e..d4f60c4 100644 --- a/force-app/main/default/lwc/bolt/toaster.js +++ b/force-app/main/default/lwc/bolt/toaster.js @@ -24,7 +24,7 @@ const TOAST_VARIANTS = ['error','success', 'info', 'warning']; * @prop {Toast} warning */ const baseConf = { - title: '', + title: ' ', //put an extra space to mimic the presence of a title, otherwise lwc will throw an error stating that the toast lacks a label messageData: [], mode: 'dismissable' } @@ -44,4 +44,4 @@ export const Toaster = TOAST_VARIANTS mode: conf.mode }) )} -}),{}); \ No newline at end of file +}),{});