Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: bad API response should not break UI #30

Closed
w3b3 opened this issue Aug 12, 2021 · 1 comment
Closed

Bug: bad API response should not break UI #30

w3b3 opened this issue Aug 12, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@w3b3
Copy link
Owner

w3b3 commented Aug 12, 2021

Currently having a typeerror being shown here

useEffect(() => {
    getAllEntries().then((newList) => {
      setTaskList(newList.tasks);
      // setApiPagination(newList.pagination);
      setTotalNumberOfTasks(newList.tasks.length); //TEMPORARY SOLUTION - FLAKY SINCE ITS WITHOUT PAGINATION
    });
  }, []);
@w3b3 w3b3 added the bug Something isn't working label Aug 12, 2021
@w3b3 w3b3 self-assigned this Aug 12, 2021
@w3b3 w3b3 pinned this issue Aug 12, 2021
@w3b3
Copy link
Owner Author

w3b3 commented Aug 12, 2021

an empty newList doesn't have tasks

@w3b3 w3b3 closed this as completed in 8adf119 Aug 12, 2021
w3b3 added a commit that referenced this issue Aug 12, 2021
w3b3 added a commit that referenced this issue Aug 12, 2021
w3b3 added a commit that referenced this issue Aug 12, 2021
w3b3 added a commit that referenced this issue Aug 12, 2021
w3b3 added a commit that referenced this issue Aug 12, 2021
@w3b3 w3b3 unpinned this issue Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant