Notifications bug fix

This commit is contained in:
2024-06-06 19:17:02 +02:00
parent 01bbd94a3e
commit 356cb94cc2
3 changed files with 10 additions and 10 deletions

View File

@ -10,6 +10,9 @@ export const useNotificationStore: StoreDefinition = defineStore('notifications'
},
actions: {
addNotification(notification: Notification) {
if (!notification.id) {
notification.id = Math.random().toString(16)
}
this.notifications.push(notification)
},
removeNotification(id: string) {