From 6e5501a5f1114931a5800a1bf47f22f483aefd7f Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 22 Sep 2022 19:02:12 +0200 Subject: [PATCH] fix(labels): unset loading state after loading all labels --- src/stores/labels.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stores/labels.ts b/src/stores/labels.ts index ff43cb35..765fa16e 100644 --- a/src/stores/labels.ts +++ b/src/stores/labels.ts @@ -80,12 +80,11 @@ export const useLabelStore = defineStore('label', { return } - const cancel = setLoadingPinia(useLabelStore) + const cancel = setLoadingPinia(useLabelStore, this.setIsLoading) try { const labels = await getAllLabels() this.setLabels(labels) - this.setIsLoading(true) return labels } finally { cancel()