]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(devtools): grouping of actions
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 4 Aug 2021 13:50:53 +0000 (15:50 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 4 Aug 2021 13:50:53 +0000 (15:50 +0200)
src/devtools/plugin.ts

index e3f8d5d84c62d1c39fe81d89e79ff96b50747d20..5592a2da124c741ef720c1734e0b684323ee5d2d 100644 (file)
@@ -476,7 +476,7 @@ export function devtoolsPlugin<
 
   // only wrap actions in option-defined stores as this technique relies on
   // wrapping the context of the action with a proxy
-  if ('id' in options) {
+  if (typeof options.state === 'function') {
     patchActionForGrouping(
       // @ts-expect-error: can cast the store...
       store,