We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4e17b commit 4978e68Copy full SHA for 4978e68
app/models/wds-on-site-notifications/wds-on-site-notification.js
@@ -89,8 +89,8 @@ export default EmberObject.extend({
89
},
90
91
getMetadata(notification) {
92
- let metadata = notification.metadata ?? null;
93
-
+ let metadata =
+ typeof notification.metadata === 'undefined' || notification.metadata === null ? null : notification.metadata;
94
if (typeof metadata === 'string') {
95
try {
96
metadata = JSON.parse(metadata);
0 commit comments