File tree Expand file tree Collapse file tree
packages/ui/src/features/canvas/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ export function ActivityView() {
145145 ) ,
146146 [ folderChannels ] ,
147147 ) ;
148+ const folderChannelIdFor = ( channelName : string | null ) : string | null =>
149+ channelName
150+ ? ( folderIdByName . get ( normalizeChannelName ( channelName ) ) ?? null )
151+ : null ;
148152 const markSeen = useActivitySeenStore ( ( s ) => s . markSeen ) ;
149153 // Snapshot before marking seen so rows that were new on arrival keep their
150154 // dot for this visit.
@@ -198,13 +202,7 @@ export function ActivityView() {
198202 < ActivityRow
199203 key = { item . messageId }
200204 item = { item }
201- folderChannelId = {
202- item . channelName
203- ? ( folderIdByName . get (
204- normalizeChannelName ( item . channelName ) ,
205- ) ?? null )
206- : null
207- }
205+ folderChannelId = { folderChannelIdFor ( item . channelName ) }
208206 isNew = { ! seenAtOpen || item . createdAt > seenAtOpen }
209207 currentUserEmail = { currentUser ?. email }
210208 />
You can’t perform that action at this time.
0 commit comments