From 7873a722d7670395f71cb3b8219a77c5b8f4f6d0 Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni Date: Wed, 3 Mar 2021 02:51:48 +0530 Subject: [PATCH] fix: bug caused by $scopedSlots not being available --- src/VTNotification.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/VTNotification.vue b/src/VTNotification.vue index 6f41613..7fff272 100644 --- a/src/VTNotification.vue +++ b/src/VTNotification.vue @@ -45,10 +45,7 @@ export default { }, }, [ - this.$scopedSlots.default({ - notifications: this.sortedNotifications, - close: this.close, - }), + Object.prototype.hasOwnProperty.call(this.$scopedSlots, 'default') ? this.$scopedSlots.default({ notifications: this.sortedNotifications, close: this.close }) : null, ] ); },