From eaa583438159e2f6efa3e29f2ad9b1ac8c6c2047 Mon Sep 17 00:00:00 2001 From: fang Date: Fri, 13 Dec 2024 15:07:26 +0100 Subject: [PATCH] contacts: ensure full deletion in +do-edit This was repeatedly deleting from the outer value, instead of the accumulator intended to replace it. This would result in only a single key being deleted, even if an edit specified multiple keys for deletion. --- desk/lib/contacts.hoon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desk/lib/contacts.hoon b/desk/lib/contacts.hoon index be6afe1..fc1b53a 100644 --- a/desk/lib/contacts.hoon +++ b/desk/lib/contacts.hoon @@ -244,7 +244,7 @@ =? don !=(~ del) %+ roll del |= [key=@tas acc=_don] - (~(del by don) key) + (~(del by acc) key) don :: +from-0: legacy to new type ::