diff --git a/src/common.lua b/src/common.lua index f8d0a86..3605ad0 100644 --- a/src/common.lua +++ b/src/common.lua @@ -614,7 +614,7 @@ local function reset_data(data) data.show_setting = "home" data.items = data.items_raw - if data.itab > 1 then + if data.itab and data.itab > 1 then sort_by_category(data) end end