Only apply row height prop if defined

This commit is contained in:
Andrew Kingston 2023-06-19 17:40:57 +01:00
parent 9d8b5e99af
commit c03e64699d
1 changed files with 5 additions and 1 deletions

View File

@ -193,5 +193,9 @@ export const initialise = context => {
})
// Reset row height when initial row height prop changes
initialRowHeight.subscribe(rowHeight.set)
initialRowHeight.subscribe(height => {
if (height) {
rowHeight.set(height)
}
})
}