svelte-grid icon indicating copy to clipboard operation
svelte-grid copied to clipboard

Exception on other.js > getColumn

Open frantic0 opened this issue 3 years ago • 5 comments

Hi @vaheqelyan

I found a run time exception that impedes loading the items on the svelte-grid.

Screen Shot 2021-03-01 at 14 48 45 (2)

This happens with svelte-grid version 3.6.5 and 4.0.0 (just upgraded and tested) when I resize the window with a svelte-grid component loaded on the UI.

(https://github.com/frantic0/sema-next/blob/editors/src/pages/playground/index.svelte)[https://github.com/frantic0/sema-next/blob/editors/src/pages/playground/index.svelte]

frantic0 avatar Mar 01 '21 14:03 frantic0

I am on mobile, can't access the file

vaheqelyan avatar Mar 01 '21 19:03 vaheqelyan

are you referring to the image that I posted?

frantic0 avatar Mar 02 '21 11:03 frantic0

nope, I mean the link (https://github.com/frantic0/sema-next/blob/editors/src/pages/playground/index.svelte) [https://github.com/frantic0/sema-next/blob /editors/src/pages/playground/index.svelte] which you included in the description

vaheqelyan avatar Mar 02 '21 20:03 vaheqelyan

I mean, if a value cannot be iterated, then it must be undefined. what the columns are equal to, in the debug session ?

vaheqelyan avatar Mar 02 '21 21:03 vaheqelyan

you're right, it is undefined. I think this is related to https://github.com/vaheqelyan/svelte-grid/issues/78, where if we don't express a cols config ([resolution, columns])) and resize a window to exceed that resolution that exception pops-up

frantic0 avatar Mar 07 '21 15:03 frantic0