Skip to content

Commit 8483574

Browse files
[ML] Fixes reordering in view by selection when overall cell selected (#65290)
1 parent a108b23 commit 8483574

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugins/ml/public/application/explorer/hooks/use_selected_cells.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ export const useSelectedCells = (): [
3333

3434
const setSelectedCells = (swimlaneSelectedCells: AppStateSelectedCells) => {
3535
const mlExplorerSwimlane = { ...appState.mlExplorerSwimlane };
36+
3637
if (swimlaneSelectedCells !== undefined) {
3738
swimlaneSelectedCells.showTopFieldValues = false;
3839

3940
const currentSwimlaneType = selectedCells?.type;
4041
const currentShowTopFieldValues = selectedCells?.showTopFieldValues;
41-
const newSwimlaneType = selectedCells?.type;
42+
const newSwimlaneType = swimlaneSelectedCells?.type;
4243

4344
if (
4445
(currentSwimlaneType === SWIMLANE_TYPE.OVERALL &&

0 commit comments

Comments
 (0)