Skip to content

Commit

Permalink
toaster.js - set default title as a space character
Browse files Browse the repository at this point in the history
  • Loading branch information
brtheo authored Jul 23, 2024
1 parent 5d1cef8 commit 945db82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions force-app/main/default/lwc/bolt/toaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -44,4 +44,4 @@ export const Toaster = TOAST_VARIANTS
mode: conf.mode
})
)}
}),{});
}),{});

0 comments on commit 945db82

Please sign in to comment.