mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-03 06:27:47 +00:00
move setInterval
This commit is contained in:
parent
58cb775627
commit
265ca40df1
@ -186,10 +186,10 @@ export class HuiGraphHeaderFooter
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _unsubscribeHistoryTimeWindow() {
|
private _unsubscribeHistoryTimeWindow() {
|
||||||
|
clearInterval(this._interval);
|
||||||
if (!this._subscribed) {
|
if (!this._subscribed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clearInterval(this._interval);
|
|
||||||
this._subscribed.then((unsubscribe) => {
|
this._subscribed.then((unsubscribe) => {
|
||||||
if (unsubscribe) {
|
if (unsubscribe) {
|
||||||
unsubscribe();
|
unsubscribe();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user