Skip to content

Commit dd6901e

Browse files
committed
fix: fix race condition on menu fetch, when get_public_config injections overwrites get_base_config injections
https://web.tracklify.com/project/2b7ZVgE5/AdminForth/1470/6JCjvYxd/on-first-fetch-injected-head-i
1 parent 377e012 commit dd6901e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adminforth/spa/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ async function loadPublicConfig() {
329329
330330
// initialize components based on data attribute selectors
331331
onMounted(async () => {
332-
loadMenu(); // run this in async mode
333-
loadPublicConfig(); // and this
332+
await loadPublicConfig(); // run this in async mode
333+
await loadMenu(); // and this
334334
// before init flowbite we have to wait router initialized because it affects dom(our v-ifs) and fetch menu
335335
await initRouter();
336336

0 commit comments

Comments
 (0)