diff --git a/tools/winscope-ng/src/app/components/collect_traces.component.ts b/tools/winscope-ng/src/app/components/collect_traces.component.ts index 952b9ec5c..0af3c1178 100644 --- a/tools/winscope-ng/src/app/components/collect_traces.component.ts +++ b/tools/winscope-ng/src/app/components/collect_traces.component.ts @@ -425,7 +425,7 @@ export class CollectTracesComponent implements OnInit, OnDestroy { }); } - private requestedEnableConfig(): Array | undefined { + private requestedEnableConfig(): Array { const req: Array = []; const tracingConfig = this.tracingConfig.getTracingConfig(); Object.keys(tracingConfig) @@ -442,9 +442,6 @@ export class CollectTracesComponent implements OnInit, OnDestroy { }); } }); - if (req.length === 0) { - return undefined; - } return req; }