Forráskód Böngészése

Show note in history only when filled

Deniz Cengiz 1 éve
szülő
commit
5a63852687

+ 1 - 1
FreeAPS/Sources/Modules/DataTable/View/DataTableRootView.swift

@@ -473,7 +473,7 @@ extension DataTable {
                     Text(dateFormatter.string(from: meal.date ?? Date()))
                         .moveDisabled(true)
                 }
-                if let note = meal.note {
+                if let note = meal.note, note != "" {
                     HStack {
                         Image(systemName: "square.and.pencil")
                         Text(note)