hundredrabbits / Dotgrid

Minimalist Vector Tool
https://hundredrabbits.itch.io/dotgrid
Other
1.04k stars 75 forks source link

theme.js error when paths is undefined (minor issue) #49

Closed xoorath closed 5 years ago

xoorath commented 5 years ago
if (!paths) { console.log('Nothing to load') }

should return in this error case, the following line you index paths[0], even if paths is undefined.

https://github.com/hundredrabbits/Dotgrid/blob/master/desktop/sources/scripts/lib/theme.js#L77

neauoire commented 5 years ago

Thanks :) Fixed