]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(devtools): avoid warning
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 24 Jun 2021 16:16:03 +0000 (18:16 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 24 Jun 2021 16:16:03 +0000 (18:16 +0200)
src/devtools/plugin.ts

index fe76b53f3cf803570fecd887bc62cb24b549f528..82b55e4585fb5553da8ab5e4f0e6deb8dbf5e63b 100644 (file)
@@ -173,10 +173,9 @@ function addDevtools(app: App, store: Store) {
                 : registeredStores.get(payload.nodeId)
 
             if (!inspectedStore) {
-              return toastMessage(
-                `store "${payload.nodeId}" not found`,
-                'error'
-              )
+              // this could be the selected store restored for a different project
+              // so it's better not to say anything here
+              return
             }
 
             if (inspectedStore) {