Skip to content

Feature/Remove empty note creation when no content is entered#169

Open
johntheprime wants to merge 1 commit intoOmGodse:masterfrom
johntheprime:feature/empty-note-fix
Open

Feature/Remove empty note creation when no content is entered#169
johntheprime wants to merge 1 commit intoOmGodse:masterfrom
johntheprime:feature/empty-note-fix

Conversation

@johntheprime
Copy link
Copy Markdown

Hi Om,

Creating new empty note is as simple as one click, and leaving an empty note in the notes list is a burden to clean. So, this pr is to create notes only when there is some content.

  • Remove createBaseNote call from setState
  • Only save note when content is not empty
  • Handle new note creation in saveNote method

- Remove createBaseNote call from setState
- Only save note when content is not empty
- Handle new note creation in saveNote method
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.

1 participant