Skip to content

AddTask and UpdateTask crash silently on API error➕ #97

Description

@anoopcodehack

addTask and updateTask crash silently on API error

File: client/src/context/BoardContext.jsx

addTask() and updateTask() have NO try/catch.
If the server is down or token expires, app crashes with
unhandled promise rejection.

Fix: wrap both in try/catch and return the error
so the UI can show a toast message.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions