mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix a hang in history graph card editor (#15623)
This commit is contained in:
parent
9ce4563dd4
commit
4b428a60cd
@ -143,7 +143,10 @@ export class StateHistoryChartTimeline extends LitElement {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
afterUpdate: (y) => {
|
afterUpdate: (y) => {
|
||||||
if (this._yWidth !== Math.floor(y.width)) {
|
if (
|
||||||
|
this._yWidth !== Math.floor(y.width) &&
|
||||||
|
y.ticks.length === this.data.length
|
||||||
|
) {
|
||||||
this._yWidth = Math.floor(y.width);
|
this._yWidth = Math.floor(y.width);
|
||||||
fireEvent(this, "y-width-changed", {
|
fireEvent(this, "y-width-changed", {
|
||||||
value: this._yWidth,
|
value: this._yWidth,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user