fix: update

This commit is contained in:
Fine 2024-01-29 20:01:55 +08:00
parent 84ebe7492b
commit 9b69c270fa

View File

@ -208,17 +208,6 @@ limitations under the License. -->
} }
}); });
[...fixSpans, ...props.data].forEach((i) => { [...fixSpans, ...props.data].forEach((i) => {
if (i.refs.length) {
const item = i.refs.find((d) => d.traceId === i.traceId);
if (item) {
i = {
...i,
...item,
segmentId: item.parentSegmentId,
spanId: -2,
};
}
}
i.label = i.endpointName || "no operation name"; i.label = i.endpointName || "no operation name";
i.children = []; i.children = [];
if (!segmentGroup[i.segmentId]) { if (!segmentGroup[i.segmentId]) {