From ac287e3257c95b8813a006792e1acb868977dbc1 Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Mon, 6 Mar 2023 17:42:41 +0000 Subject: [PATCH] Ensure changes in the values of selectedTraces triggers a redraw Fixes: 268175837 Test: npm run test:all Change-Id: Idd4985b3e45bc3f39dbfc17de5e4559ba7c0152b --- .../winscope/src/app/components/timeline/timeline_component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/winscope/src/app/components/timeline/timeline_component.ts b/tools/winscope/src/app/components/timeline/timeline_component.ts index a763c35f5..a0a679a13 100644 --- a/tools/winscope/src/app/components/timeline/timeline_component.ts +++ b/tools/winscope/src/app/components/timeline/timeline_component.ts @@ -311,6 +311,8 @@ export class TimelineComponent implements TimestampChangeListener { this.selectedTraces = this.selectedTraces.slice(1, 1 + this.MAX_SELECTED_TRACES); } + // Create new object to make sure we trigger an update on Mini Timeline child component + this.selectedTraces = [...this.selectedTraces] this.selectedTracesFormControl.setValue(this.selectedTraces); } internalActiveTrace: TraceType | undefined = undefined;