We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae074c commit 1ece0a7Copy full SHA for 1ece0a7
plugins/autoStoreRegister.js
@@ -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
-
+const autoStoreRegister = ({ store }) => {
7
if (store.$id === "app") {
8
return
9
}
@@ -14,6 +9,6 @@ const autoRegister = ({ store }) => {
14
15
10
16
11
export default defineNuxtPlugin((nuxtApp) => {
17
- nuxtApp.$pinia.use(autoRegister)
12
+ nuxtApp.$pinia.use(autoStoreRegister)
18
13
console.log("[AUTOREGISTER PLUGIN] Loaded automatically from OpenGeodeWeb-Front")
19
})
0 commit comments