Skip to content

Commit 6b7ba8c

Browse files
[frontend] fix delete in redux store (#2793)
1 parent 8da3c72 commit 6b7ba8c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

openbas-front/src/reducers/Referential.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const referential = (state: any = Map({}), action: any = {}) => {
7676
case Constants.DATA_DELETE_SUCCESS: {
7777
return state.setIn(
7878
['entities', action.payload.type],
79-
R.dissoc(action.payload.id, state.entities[action.payload.type]),
79+
state.getIn(['entities', action.payload.type]).delete(action.payload.id),
8080
);
8181
}
8282
default: {

0 commit comments

Comments
 (0)