Skip to content

Commit

Permalink
chore: fix vercel build
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra committed Sep 18, 2021
1 parent f53c939 commit 5ee7e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function flexLayout({ items, gap, direction, sizes = [] }) {
let lastSize = 0;
// filter() for filtering out empty strings
return items.filter(Boolean).map((item, i) => {
const size = sizes?.[i] || 0;
const size = sizes[i] || 0;
let transform = `translate(${lastSize}, 0)`;
if (direction === "column") {
transform = `translate(0, ${lastSize})`;
Expand Down

0 comments on commit 5ee7e98

Please sign in to comment.