cuire / svelte-grid-extended

A draggable and resizable grid layout, for Svelte
https://svelte-grid-extended.vercel.app
MIT License
78 stars 9 forks source link

[Bug] Config not asserted #2

Closed cuire closed 1 year ago

cuire commented 1 year ago

When cols or rows are objects and contain 0, the assert function does not work.

Broken lines:

// ./utils/assert.ts
(typeof cols === 'object' && Object.values(cols).includes(0)) ||
(typeof rows === 'object' && Object.values(rows).includes(0) && itemSize === undefined)