mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[SecuritySolution] Fix timeline saving / prevent epic from crashing (#171674)
## Summary Fixes https://github.com/elastic/kibana/issues/168194 Under some circumstance, when navigating to the timelines page, we would get a runtime exception for `state.tableById[action.id]` not being defined. When that happened, the redux store would be in a broken state. This PR makes the responsible destructuring assignment more save.
This commit is contained in:
parent
e79ca5e9d6
commit
10f422836b
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ export const dataTableReducer = reducerWithInitialState(initialDataTableState)
|
|||
[action.id]: {
|
||||
...state.tableById[action.id],
|
||||
expandedDetail: {
|
||||
...state.tableById[action.id].expandedDetail,
|
||||
...state.tableById[action.id]?.expandedDetail,
|
||||
...updateTableDetailsPanel(action),
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue