From 2bdec7deb0210efe65a496e6d49eef397a7f5314 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Tue, 2 Feb 2021 13:07:25 +1000 Subject: [PATCH] contact-store: make pinned group resource conversion use path-style This is necessary because Formik loses the plot when fields aren't referentially equal every render. --- pkg/arvo/lib/contact-store.hoon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/arvo/lib/contact-store.hoon b/pkg/arvo/lib/contact-store.hoon index 8356d69aab..18efaa09f9 100644 --- a/pkg/arvo/lib/contact-store.hoon +++ b/pkg/arvo/lib/contact-store.hoon @@ -75,7 +75,7 @@ [%color s+(scot %ux color.contact)] [%avatar ?~(avatar.contact ~ s+u.avatar.contact)] [%cover ?~(cover.contact ~ s+u.cover.contact)] - [%groups a+(turn ~(tap in groups.contact) |=(r=resource (enjs:res r)))] + [%groups a+(turn ~(tap in groups.contact) (cork enjs-path:res (lead %s)))] [%last-updated (time last-updated.contact)] == :: @@ -90,8 +90,8 @@ %color s+(scot %ux color.field) %avatar ?~(avatar.field ~ s+u.avatar.field) %cover ?~(cover.field ~ s+u.cover.field) - %add-group (enjs:res resource.field) - %remove-group (enjs:res resource.field) + %add-group s+(enjs-path:res resource.field) + %remove-group s+(enjs-path:res resource.field) == :: ++ beng