layout: add guard
parent
e864a4ef45
commit
b38195b701
|
@ -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