Do not re-upload entries when adding a blank note

This commit is contained in:
2025-02-01 12:19:27 -05:00
parent 4556e38e32
commit d323f2f75a
+2 -2
View File
@@ -119,8 +119,8 @@ func editNote(baseNote []string) ([]string, bool) {
// clamp trailing whitespace in each note line // clamp trailing whitespace in each note line
core.ClampTrailingWhitespace(note) core.ClampTrailingWhitespace(note)
// return the edited note if it is different from baseNote // return the edited note if it is different from baseNote and is not empty
if !reflect.DeepEqual(note, baseNote) { if !reflect.DeepEqual(note, baseNote) && len(note) > 0 {
return note, true return note, true
} else { } else {
return nil, false return nil, false