mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
collections: loosen property access in unread marking
Fixes urbit/landscape#999
This commit is contained in:
parent
2dd31e8cf6
commit
f630f6bf0d
@ -46,8 +46,8 @@ export function LinkBlocks(props: LinkBlocksProps) {
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
const { unreads } = useHarkState
|
||||
.getState().unreads.graph?.[association.resource]?.['/'];
|
||||
const unreads = useHarkState.getState()
|
||||
.unreads.graph?.[association.resource]?.['/']?.unreads || new Set<string>();
|
||||
Array.from((unreads as Set<string>)).forEach((u) => {
|
||||
airlock.poke(markEachAsRead(association.resource, '/', u));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user