mirror of
https://github.com/urbit/shrub.git
synced 2025-01-01 17:16:47 +03:00
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:
parent
d7e34451ac
commit
2bdec7deb0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user