This commit is contained in:
Fine 2025-07-16 16:08:26 +08:00
parent cf439cd2c7
commit 51cc33f38c
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ export default class ListGraph {
this.data = data;
this.min = d3.min(this.row.map((i) => i.startTime));
this.max = d3.max(this.row.map((i) => i.endTime - this.min)) || 0;
this.list = useTraceStore().serviceList;
this.list = useTraceStore().serviceList || [];
this.xScale = d3
.scaleLinear()
.range([0, this.width * 0.387])

View File

@ -88,7 +88,7 @@ export default class TraceMap {
this.data = data;
this.min = Number(d3.min(this.row.map((i: Span) => i.startTime)));
this.max = Number(d3.max(this.row.map((i: Span) => i.endTime - this.min)));
this.list = useTraceStore().serviceList;
this.list = useTraceStore().serviceList || [];
this.xScale = d3.scaleLinear().range([0, 100]).domain([0, this.max]);
this.sequentialScale = d3
.scaleSequential()