From dbf7094e61ba7a5f8cc6b5585cc34bd1d9d8a7b2 Mon Sep 17 00:00:00 2001 From: ingalls Date: Thu, 15 Feb 2024 08:28:43 -0700 Subject: [PATCH] Add subs --- api/web/src/stores/subscription.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/web/src/stores/subscription.js b/api/web/src/stores/subscription.js index fad602308..58bdf2bc6 100644 --- a/api/web/src/stores/subscription.js +++ b/api/web/src/stores/subscription.js @@ -7,7 +7,7 @@ import pointOnFeature from '@turf/point-on-feature'; export const useSubStore = defineStore('subscriptions', { state: () => { return { - initialized: false + initialized: false, subscriptions: [], } }, @@ -19,7 +19,7 @@ export const useSubStore = defineStore('subscriptions', { }, subscribe: async function() { if (!this.initialized) await this.list(); - } + }, unsubscribe: async function() { if (!this.initialized) await this.list(); }