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