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.
This commit is contained in:
Liam Fitzgerald 2021-02-02 13:07:25 +10:00
parent d7e34451ac
commit 2bdec7deb0
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -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