fix: refetch organizer data pages on visit to avoid stale data (#8260)
Co-authored-by: Kai Wang <kw491@students.waikato.ac.nz>
This commit is contained in:
1 parent
d2e27a034d
commit
b897ea52a9
4 files changed
+16
No files matched your search
@@ -142,6 +142,10 @@ const tableHeaders: TableHeaders[] = [
|
||||
];
|
||||
const categoryStore = useCategoryStore();
|
||||
|
||||
onMounted(() => {
|
||||
categoryStore.actions.refresh();
|
||||
});
|
||||
|
||||
// ============================================================
|
||||
// Form items (shared)
|
||||
const formItems = [
|
||||
|
||||
@@ -289,6 +289,10 @@ const foods = computed(() =>
|
||||
}),
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
foodStore.actions.refresh();
|
||||
});
|
||||
|
||||
// ============================================================
|
||||
// Labels
|
||||
const { store: allLabels } = useLabelStore();
|
||||
|
||||
@@ -142,6 +142,10 @@ const tableHeaders: TableHeaders[] = [
|
||||
];
|
||||
const tagStore = useTagStore();
|
||||
|
||||
onMounted(() => {
|
||||
tagStore.actions.refresh();
|
||||
});
|
||||
|
||||
// ============================================================
|
||||
// Form items (shared)
|
||||
const formItems = [
|
||||
|
||||
@@ -70,6 +70,10 @@ const tools = computed(() => toolStore.store.value.map((tools) => {
|
||||
return { ...tools, onHand } as RecipeToolWithOnHand;
|
||||
}));
|
||||
|
||||
onMounted(() => {
|
||||
toolStore.actions.refresh();
|
||||
});
|
||||
|
||||
// ============================================================
|
||||
// Form items (shared)
|
||||
const formItems = [
|
||||
|
||||
Reference in new issue
Block a user