mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 10:02:32 +03:00
metadata-store: never crash fetching group metadata
In order to track & respond to all group-related metadata, hooks may want to subscribe to the metadata-store in response to group creation. In that case it is possible that there are no entries for the group-path in group-indices yet. This makes us fall back to the empty set in case group-indices has no entry for the group-path yet.
This commit is contained in:
parent
0658367aaf
commit
115fd1c14c
@ -182,7 +182,7 @@
|
||||
|= =group-path
|
||||
^- ^associations
|
||||
%- ~(gas by *^associations)
|
||||
%+ turn ~(tap in (~(got by group-indices) group-path))
|
||||
%+ turn ~(tap in (~(gut by group-indices) group-path ~))
|
||||
|= =resource
|
||||
:- [group-path resource]
|
||||
(~(got by associations) [group-path resource])
|
||||
|
Loading…
Reference in New Issue
Block a user