Skip to content

Commit

Permalink
Remove await for initStore
Browse files Browse the repository at this point in the history
  • Loading branch information
alexookah committed Aug 6, 2024
1 parent 32c97ab commit 64b93b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woonuxt_base/app/plugins/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
const shouldInit = isDev || isPathThatRequiresInit || !storeSettings.initStoreOnUserActionToReduceServerLoad;

if (shouldInit) {
await initStore();
initStore();
} else {
eventsToFireOn.forEach((event) => {
window.addEventListener(event, initStore, { once: true });
Expand Down

0 comments on commit 64b93b6

Please sign in to comment.