mirror of
https://github.com/home-assistant/frontend
synced 2024-09-22 18:30:59 +02: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) => {
|
||||
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);
|
||||
fireEvent(this, "y-width-changed", {
|
||||
value: this._yWidth,
|
||||
|
Loading…
Reference in New Issue
Block a user