Skip to content

Commit bfe8f26

Browse files
fix(overmind-devtools): fix manual mutation of paths
1 parent b349d43 commit bfe8f26

File tree

2 files changed

+2
-2
lines changed
  • packages

2 files changed

+2
-2
lines changed

packages/node_modules/overmind-devtools-client/src/overmind/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export const undoSettingState: Action = ({ state }) => {
178178
}
179179

180180
export const submitState: Action<string> = ({ state, effects }, newState) => {
181-
const path = state.currentApp.selectedStatePath.split('.').slice(1)
181+
const path = state.currentApp.selectedStatePath.split('.')
182182

183183
effects.connector.sendMessage(state.currentApp.name, 'mutation', {
184184
path,

packages/overmind-website/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const overmind = createOvermind(
1515
devtools: false,
1616
}
1717
: {
18-
devtools: 'localhost:3032',
18+
devtools: true,
1919
}
2020
)
2121
setConfig({

0 commit comments

Comments
 (0)