Avoid name clashing

This commit is contained in:
Andrew Kingston 2024-08-13 09:14:42 +01:00
parent ead4be7b88
commit 73cc871a5e
No known key found for this signature in database
1 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,6 @@
let width
let height
let ref
let rows = 1
let children = writable({})
let mounted = false
let styles = memo({})
@ -49,11 +48,11 @@
max = children[id][key]
}
}
let rows = max - 1
let requiredRows = max - 1
if (addEmptyRows) {
return Math.ceil((rows + 10) / 10) * 10
return Math.ceil((requiredRows + 10) / 10) * 10
} else {
return rows
return requiredRows
}
}