fix graph

This commit is contained in:
Qiuxia Fan 2022-07-29 11:24:53 +08:00
parent d002f307d7
commit 08a4b54188
2 changed files with 3 additions and 10 deletions

View File

@ -104,10 +104,7 @@ function updateOptions() {
} }
if (props.filters.isRange) { if (props.filters.isRange) {
const options = eventAssociate(); const options = eventAssociate();
if (JSON.stringify(options) === JSON.stringify(props.option)) { setOptions(options || props.option);
return;
}
setOptions(options);
} else { } else {
instance.dispatchAction({ instance.dispatchAction({
type: "showTip", type: "showTip",
@ -121,7 +118,7 @@ function eventAssociate() {
if (!props.filters) { if (!props.filters) {
return; return;
} }
if (!props.filters.duration.startTime) { if (!props.filters.duration) {
return props.option; return props.option;
} }
if (!props.option.series[0]) { if (!props.option.series[0]) {

View File

@ -134,11 +134,7 @@ function associateTraceLog(
...widget, ...widget,
filters: { filters: {
sourceId: props.data.id || "", sourceId: props.data.id || "",
duration: { duration: null,
start: null,
end: null,
step: appStore.duration.step,
},
}, },
}; };
dashboardStore.setWidget(item); dashboardStore.setWidget(item);