Skip to content

Commit 4d497e1

Browse files
fix(overmind-devtools): fix issue with selecting nested state
1 parent 606fe9c commit 4d497e1

File tree

1 file changed

+2
-2
lines changed
  • packages/node_modules/overmind-devtools-client/src/overmind

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ export const setActionQueryPayload: Action<string> = (
201201
}
202202

203203
export const setState: Action<string[]> = ({ state }, path) => {
204-
state.currentApp.selectedStatePath = path.join('.')
204+
state.currentApp.selectedStatePath = path.join(state.currentApp.delimiter)
205205
}
206206

207207
export const undoSettingState: Action = ({ state }) => {
208208
state.currentApp.selectedStatePath = null
209209
}
210210

211211
export const submitState: Action<string> = ({ state, effects }, newState) => {
212-
const path = state.currentApp.selectedStatePath.split('.')
212+
const path = state.currentApp.selectedStatePath.split(state.currentApp.delimiter)
213213

214214
effects.connector.sendMessage(state.currentApp.name, 'mutation', {
215215
path,

0 commit comments

Comments
 (0)