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 3f5e461 commit f6dfba9Copy full SHA for f6dfba9
packages/node_modules/overmind/src/index.ts
@@ -950,7 +950,7 @@ export class Overmind<ThisConfig extends IConfiguration>
950
mutations.forEach((mutation) => {
951
if (mutation.path.startsWith(path)) {
952
updateCallback(
953
- path.split(this.delimiter).reduce((aggr, key) => aggr[key], this.state)
+ path ? path.split(this.delimiter).reduce((aggr, key) => aggr[key], this.state) : this.state
954
)
955
}
956
})
0 commit comments