Skip to content

Commit

Permalink
fix(devtools): avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 24, 2021
1 parent 55c651d commit 399a930
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/devtools/plugin.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 399a930

Please sign in to comment.