Fix dish deletion list flicker with stable identity/order and add regression test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user