Merge "Ensure changes in the values of selectedTraces triggers a redraw" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-03-07 13:06:41 +00:00
committed by Android (Google) Code Review

View File

@@ -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;