Skip to content

Commit

Permalink
update store when updating footprints
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaamo committed Dec 24, 2024
1 parent 5f4d5f8 commit 7063129
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions front/src/views/footprints/Manage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export default {
.getFootprintsList({ category_id: this.selectedCategory.id })
.then((val) => {
this.footprints = val.data;
// Also update the store
this.preloadsStore.setFootprints(val.data);
this.preloadsStore.setLastUpdate("footprints", new Date());
})
.catch((err) => {
this.toast.add({
Expand Down

0 comments on commit 7063129

Please sign in to comment.