Alert: If the permission is forbidden, keep the historical alarm data present. (#19007)

This commit is contained in:
lzd 2019-12-10 16:22:49 +08:00 committed by Torkel Ödegaard
parent bf0d87aaf6
commit 6efadc9d79

View File

@ -55,12 +55,11 @@ class StateHistory extends PureComponent<Props, State> {
panelId: panelId, panelId: panelId,
}) })
.then(() => { .then(() => {
this.setState({
stateHistoryItems: [],
});
onRefresh(); onRefresh();
}); });
this.setState({
stateHistoryItems: [],
});
}, },
}); });
}; };