federicoiosue/Omni-Notes

Incorrect Prompt Displayed When Deleting Categories without notes

Closed this issue · 1 comments

Description:

When attempting to delete a category that contains no notes, the app erroneously displays a prompt indicating that this category is used by some notes.

I think if there are no notes under the category, the prompt shouldn't be displayed. Because the prompt indicates that there are notes in the category.

Reproduce steps:

  1. create a new category 'A' in one note
  2. assign the note to another category. (so there is no note under the category 'A' )
  3. delete the category 'A'
  4. see the error: a prompt displays

Expected behavior:

If there are no notes under the category, then the prompt should not display

Bug video:

bug_category_delete.mp4

Environment:
Omninotes Version: 6.3.0Alpha

Thanks for your fix!