fix: trace

This commit is contained in:
Fine 2023-11-22 11:25:33 +08:00
parent 03e1508afc
commit 1891d1a879
2 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,7 @@ limitations under the License. -->
{
sourceId: options.id || "",
traceId: id,
id: props.data.serviceId || "",
},
"Trace",
);

View File

@ -178,6 +178,7 @@ limitations under the License. -->
if (props.data.filters.id) {
item = arr.find((d: { id: string }) => d.id === props.data.filters?.id);
}
return item;
}
function setCondition() {
@ -194,7 +195,7 @@ limitations under the License. -->
if (props.data.filters && props.data.filters.id) {
param = {
...param,
serviceId: selectorStore.currentService.id,
serviceId: props.data.filters.id || undefined,
endpointId: state.endpoint.id || undefined,
serviceInstanceId: state.instance.id || undefined,
};