Skip to content

Commit 1ece0a7

Browse files
committed
removed unecessary verification
1 parent 3ae074c commit 1ece0a7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

plugins/autoStoreRegister.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
const autoRegister = ({ store }) => {
2-
if (!store || !store.$id) {
3-
console.warn("[AutoRegister] Invalid store object received", store)
4-
return
5-
}
6-
1+
const autoStoreRegister = ({ store }) => {
72
if (store.$id === "app") {
83
return
94
}
@@ -14,6 +9,6 @@ const autoRegister = ({ store }) => {
149
}
1510

1611
export default defineNuxtPlugin((nuxtApp) => {
17-
nuxtApp.$pinia.use(autoRegister)
12+
nuxtApp.$pinia.use(autoStoreRegister)
1813
console.log("[AUTOREGISTER PLUGIN] Loaded automatically from OpenGeodeWeb-Front")
1914
})

0 commit comments

Comments
 (0)