Fix dish deletion list flicker with stable identity/order and add regression test

This commit is contained in:
alexandrev-tibco
2026-02-26 11:06:54 +01:00
parent 37c2e01a09
commit 9f4cf7484d
5 changed files with 29 additions and 6 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ struct DishListView: View {
}
} else {
List {
ForEach(dishes) { dish in
ForEach(dishes, id: \.id) { dish in
let dishTags = tags.filter { dish.tagIds.contains($0.id) }
Button {
editingDish = dish