Skip to content

Commit

Permalink
Unset parent for init actions in elementsReducer
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jul 2, 2024
1 parent 756799b commit 30a644f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rdmo/management/assets/js/reducers/elementsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function elementsReducer(state = initialState, action) {
elementId: null,
elementAction: null,
element: null,
parent: null,
errors: {}
}
case 'elements/fetchElementsSuccess':
Expand All @@ -46,6 +47,7 @@ export default function elementsReducer(state = initialState, action) {
elementId: action.elementId,
elementAction: action.elementAction,
element: null,
parent: null,
errors: {}
}
case 'elements/fetchElementSuccess':
Expand Down Expand Up @@ -89,6 +91,7 @@ export default function elementsReducer(state = initialState, action) {
elementId: null,
elementAction: 'create',
element: null,
parent: null,
errors: {}
}
case 'elements/createElementSuccess':
Expand Down

0 comments on commit 30a644f

Please sign in to comment.