Skip to content

Conversation

@TheBoolean-Boy
Copy link

The delete note fucntionality was missing error handling on client side. So I wrapped the delete action function inside a try/catch block for better error handling.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Added a try/catch block to the delete note functionality so as to prevent any potential runtime failures to delete.
Copy link
Collaborator

@ianmacartney ianmacartney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the user will not get any feedback that something went wrong in this case - a toast would be a good improvement - here only a developer would learn more. wdyt?

@TheBoolean-Boy
Copy link
Author

Yes, I believe so that would enhance this from a user perspective surely.

I believe the user will not get any feedback that something went wrong in this case - a toast would be a good improvement - here only a developer would learn more. wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants