mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 13:04:17 +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(() => {
|
useEffect(() => {
|
||||||
const { unreads } = useHarkState
|
const unreads = useHarkState.getState()
|
||||||
.getState().unreads.graph?.[association.resource]?.['/'];
|
.unreads.graph?.[association.resource]?.['/']?.unreads || new Set<string>();
|
||||||
Array.from((unreads as Set<string>)).forEach((u) => {
|
Array.from((unreads as Set<string>)).forEach((u) => {
|
||||||
airlock.poke(markEachAsRead(association.resource, '/', u));
|
airlock.poke(markEachAsRead(association.resource, '/', u));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user