Discover books, shows, and movies at your level. Track your progress by filling your Shelf with what you find, and share with other language learners. *No dusting required. shlf.space
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(ui/shelf): length check on null array

Signed-off-by: brookjeynes <me@brookjeynes.dev>

authored by

brookjeynes and committed by
Tangled
349fa165 c1157e15

+2 -2
+2 -2
internal/ui/views/shelf/shelf.js
··· 17 17 function shelf(catalog, items) { 18 18 return { 19 19 /** @type{ShelfItem[]} */ 20 - items: items, 20 + items: items || [], 21 21 /** @type{Book[]} */ 22 - catalog: catalog, 22 + catalog: catalog || [], 23 23 cols: 1, 24 24 dragSrcIndex: -1, 25 25 popupX: 0,