diff --git a/src/pages/Worker/Card/WorkerNotificationsManager.vue b/src/pages/Worker/Card/WorkerNotificationsManager.vue index 44573adca..8699392e0 100644 --- a/src/pages/Worker/Card/WorkerNotificationsManager.vue +++ b/src/pages/Worker/Card/WorkerNotificationsManager.vue @@ -20,8 +20,8 @@ const { t } = useI18n(); const quasar = useQuasar(); const entityId = computed(() => $props.id || route.params.id); const URL_KEY = 'NotificationSubscriptions'; -const active = ref(); -const available = ref(); +const active = ref(new Map()); +const available = ref(new Map()); async function toggleNotification(notification) { try { @@ -56,6 +56,7 @@ const swapEntry = (from, to, key) => { }; function setNotifications(data) { + console.log('data: ', data); active.value = new Map(data.active); available.value = new Map(data.available); }