Skip to content

Commit

Permalink
fix: clear selection after resource removed
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Sep 9, 2021
1 parent fe54753 commit c617374
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/redux/reducers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ export const mainSlice = createSlice({
return original(state);
}
}
if (state.selectedResourceId === resourceId) {
clearResourceSelections(state.resourceMap);
}
},
/**
* Marks the specified resource as selected and highlights all related resources
Expand Down

0 comments on commit c617374

Please sign in to comment.