fix(labels): unset loading state after loading all labels
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
937fd36f72
commit
6e5501a5f1
|
@ -80,12 +80,11 @@ export const useLabelStore = defineStore('label', {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const cancel = setLoadingPinia(useLabelStore)
|
const cancel = setLoadingPinia(useLabelStore, this.setIsLoading)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const labels = await getAllLabels()
|
const labels = await getAllLabels()
|
||||||
this.setLabels(labels)
|
this.setLabels(labels)
|
||||||
this.setIsLoading(true)
|
|
||||||
return labels
|
return labels
|
||||||
} finally {
|
} finally {
|
||||||
cancel()
|
cancel()
|
||||||
|
|
Reference in New Issue