From 2bd9f42b81c89cfa8a709517a9b7375794dbe6e6 Mon Sep 17 00:00:00 2001 From: Jonas Metzener Date: Thu, 20 Jan 2022 15:54:50 +0100 Subject: [PATCH] fix(notification): fix notification options if app doesn't configure anything --- addon/services/notification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/services/notification.js b/addon/services/notification.js index e4f38713..06cef8ee 100644 --- a/addon/services/notification.js +++ b/addon/services/notification.js @@ -15,7 +15,9 @@ function notification(status) { export default class NotificationService extends Service { _notification(message, options) { const n = UIkit.notification( - Object.assign(config["ember-uikit"]?.notification, options, { message }) + Object.assign(config["ember-uikit"]?.notification ?? {}, options, { + message, + }) ); return n?.$el