Rename variables

This commit is contained in:
Paul Bottein 2024-08-20 11:09:57 +02:00
parent 79f3dfdfce
commit 14c2b60538
No known key found for this signature in database

View File

@ -209,8 +209,10 @@ export class SectionsView extends LitElement implements LovelaceViewElement {
(section) => this._getSectionKey(section), (section) => this._getSectionKey(section),
(section, idx) => { (section, idx) => {
const sectionConfig = this._config?.sections?.[idx]; const sectionConfig = this._config?.sections?.[idx];
const columnSpan = Math.min(sectionConfig?.column_span || 1); const columnSpan = Math.min(
sectionConfig?.column_span || 1,
maxColumnCount
);
const rowSpan = sectionConfig?.row_span || 1; const rowSpan = sectionConfig?.row_span || 1;
(section as any).itemPath = [idx]; (section as any).itemPath = [idx];