Merge "ui: Fix corner case with toggling track selection checkboxes"
diff --git a/ui/src/common/actions.ts b/ui/src/common/actions.ts
index 2b86023..ef76d62 100644
--- a/ui/src/common/actions.ts
+++ b/ui/src/common/actions.ts
@@ -917,6 +917,11 @@
}
}
}
+ // It's super unexpected that |toggleTrackSelection| does not cause
+ // selection to be updated and this leads to bugs for people who do:
+ // if (oldSelection !== state.selection) etc.
+ // To solve this re-create the selection object here:
+ state.currentSelection = Object.assign({}, state.currentSelection);
},
setVisibleTraceTime(state: StateDraft, args: VisibleState): void {