mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
fix graph
This commit is contained in:
parent
d002f307d7
commit
08a4b54188
@ -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]) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user