fix(labels): unset loading state after loading all labels
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2022-09-22 19:02:12 +02:00
parent 937fd36f72
commit 6e5501a5f1
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 2 deletions

View File

@ -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()