@@ -45,6 +45,7 @@ const IssuesPage = () => {
4545 title : string
4646 state : string
4747 labels : string [ ]
48+ assignees : Array < { avatarUrl : string ; login : string ; name : string } >
4849 }
4950
5051 const moduleIssues : ModuleIssueRow [ ] = useMemo ( ( ) => {
@@ -54,6 +55,7 @@ const IssuesPage = () => {
5455 title : i . title ,
5556 state : i . state ,
5657 labels : i . labels || [ ] ,
58+ assignees : i . assignees || [ ] ,
5759 } ) )
5860 } , [ moduleData ] )
5961
@@ -222,29 +224,25 @@ const IssuesPage = () => {
222224 </ div >
223225 </ td >
224226 < td className = "px-6 py-4 text-sm whitespace-nowrap text-gray-700 dark:text-gray-300" >
225- { ( ( assignees ) =>
226- assignees ?. length ? (
227+ { issue . assignees ?. length ? (
228+ < div className = "flex items-center gap-2" >
227229 < div className = "flex items-center gap-2" >
228- < div className = "flex items-center gap-2" >
229- < Image
230- height = { 24 }
231- width = { 24 }
232- src = { assignees [ 0 ] . avatarUrl }
233- alt = { assignees [ 0 ] . login }
234- className = "rounded-full"
235- />
236- < span > { assignees [ 0 ] . login || assignees [ 0 ] . name } </ span >
237- </ div >
238- { assignees . length > 1 && (
239- < div className = "flex h-6 w-6 items-center justify-center rounded-full bg-gray-200 text-xs font-medium text-gray-600 dark:bg-gray-700 dark:text-gray-300" >
240- +{ assignees . length - 1 }
241- </ div >
242- ) }
230+ < Image
231+ height = { 24 }
232+ width = { 24 }
233+ src = { issue . assignees [ 0 ] . avatarUrl }
234+ alt = { issue . assignees [ 0 ] . login }
235+ className = "rounded-full"
236+ />
237+ < span > { issue . assignees [ 0 ] . login || issue . assignees [ 0 ] . name } </ span >
243238 </ div >
244- ) : null ) (
245- ( data ?. getModule ?. issues || [ ] ) . find ( ( i ) => i . id === issue . objectID )
246- ?. assignees
247- ) }
239+ { issue . assignees . length > 1 && (
240+ < div className = "flex h-6 w-6 items-center justify-center rounded-full bg-gray-200 text-xs font-medium text-gray-600 dark:bg-gray-700 dark:text-gray-300" >
241+ +{ issue . assignees . length - 1 }
242+ </ div >
243+ ) }
244+ </ div >
245+ ) : null }
248246 </ td >
249247 </ tr >
250248 ) ) }
0 commit comments