Tile with rows/cols=0

Hi Dan,
I find a bug in ZIM 19 — this didn’t happen in ZIM 18.

If I create a Tile with 0 rows or columns, in ZIM 18 it was simply ignored, but in ZIM 19 it throws an error.

This is the error I’m getting in ZIM 19:
" Uncaught TypeError: Cannot read properties of null"

example:

 let arr = []
 let tile = new Tile({ obj: arr, cols: 1, unique: true, rows:arr.length }).addTo();

I’m not sure if this is intentional or a mistake. I’d be happy to get your feedback.
Thanks!

I am getting a console warning for that code... is there something you might have done with the Tile later?

I actually got an error. Since you only had a warning, I updated to ZIM 19 and now I also only get a warning.
Thanks a lot anyway!

1 Like