From af566ab1fa94d9542b0fd5f96010962054342085 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 2 Feb 2022 12:06:27 +0100 Subject: [PATCH] fix(Notifications): default value in `useState` --- src/runtime/components/overlays/Notifications.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/overlays/Notifications.vue b/src/runtime/components/overlays/Notifications.vue index 0e5eaf52..dda68354 100644 --- a/src/runtime/components/overlays/Notifications.vue +++ b/src/runtime/components/overlays/Notifications.vue @@ -25,5 +25,5 @@ import { useNuxtApp, useState } from '#app' import Notification from './Notification' const { $toast } = useNuxtApp() -const notifications = useState('notifications') +const notifications = useState('notifications', () => [])