mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
hotfix
This commit is contained in:
@@ -162,7 +162,7 @@ export function loadLists() {
|
||||
const todos = await localforage.getItem('todos');
|
||||
dispatch(recieveLists(lists));
|
||||
dispatch({ type: RECIEVE_TODOS, todos });
|
||||
if (lists[Object.keys(lists)[0]]) {
|
||||
if (lists && Object.keys(lists).length) {
|
||||
dispatch(changeList(lists[Object.keys(lists)[0]].id));
|
||||
}
|
||||
dispatch(fetchLists());
|
||||
|
||||
Reference in New Issue
Block a user