layout: add guard
parent
88e89c88e0
commit
7ce3d3225d
|
@ -23,6 +23,8 @@ export function getLayout(
|
|||
height: number,
|
||||
rowHeight?: number,
|
||||
}[] {
|
||||
if (input.length === 0) return [];
|
||||
|
||||
if (!opts.squareMode) {
|
||||
return justifiedLayout((input), {
|
||||
containerPadding: 0,
|
||||
|
|
Loading…
Reference in New Issue