From 8a66f5e9bf65ab04b8878f0d597e439b45b46bb3 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 17 Aug 2022 14:10:34 +0200 Subject: [PATCH] fix(Notification): prevent error without timeout --- src/runtime/components/overlays/Notification.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/components/overlays/Notification.vue b/src/runtime/components/overlays/Notification.vue index afe0af5c89..e169af2ccb 100644 --- a/src/runtime/components/overlays/Notification.vue +++ b/src/runtime/components/overlays/Notification.vue @@ -192,7 +192,9 @@ onMounted(() => { }) onUnmounted(() => { - timer.stop() + if (timer) { + timer.stop() + } })