From: Eduardo San Martin Morote Date: Thu, 24 Jun 2021 16:16:03 +0000 (+0200) Subject: fix(devtools): avoid warning X-Git-Tag: v2.0.0-beta.5~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=399a93002b9b3627e636af191e64a7b56f82d2db;p=thirdparty%2Fvuejs%2Fpinia.git fix(devtools): avoid warning --- diff --git a/src/devtools/plugin.ts b/src/devtools/plugin.ts index fe76b53f..82b55e45 100644 --- a/src/devtools/plugin.ts +++ b/src/devtools/plugin.ts @@ -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) {