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

View File

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