Skip to content

Commit

Permalink
fix(package-store): update items array to trigger reactivity on defau…
Browse files Browse the repository at this point in the history
…lt package change

Signed-off-by: Wanjin Noh <[email protected]>
  • Loading branch information
WANZARGEN committed Dec 20, 2024
1 parent 5e209bc commit 5ba6cfa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const usePackageStore = defineStore('package', () => {
if (prev) prev.is_default = false;
const current = state.items?.find((p) => p.package_id === packageId);
if (current) current.is_default = true;
if (state.items) state.items = [...state.items];
return response;
},
async delete(packageId: string) {
Expand Down

0 comments on commit 5ba6cfa

Please sign in to comment.