fix label store (#303)

This commit is contained in:
Hayden 2023-02-18 09:47:04 -09:00 committed by GitHub
parent 6cfa6c9fc8
commit 859d3b9ffe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,8 @@ export const useLabelStore = defineStore("labels", {
if (result.error) { if (result.error) {
console.error(result.error); console.error(result.error);
} }
this.allLabels = result.data.items;
}); });
} }
return state.allLabels ?? []; return state.allLabels ?? [];