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