File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
pages/Instance/Info/Retrieval Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export const RetrievalModal = ({
1414 isOpen : boolean
1515 onClose : ( ) => void
1616 data : {
17- source : ActivityType [ ] | null
18- target : ActivityType [ ] | null
17+ source : ActivityType [ ]
18+ target : ActivityType [ ]
1919 }
2020} ) => {
2121 const stores = useStores ( )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const RetrievalTable = ({
1313 data,
1414 activity,
1515} : {
16- data : ActivityType [ ] | null
16+ data : ActivityType [ ]
1717 activity : string
1818} ) => {
1919 return (
@@ -24,7 +24,7 @@ export const RetrievalTable = ({
2424 </ TableRow >
2525 </ TableHead >
2626 < TableBody className = { styles . tableBody } >
27- { data ? (
27+ { data && data . length > 0 ? (
2828 data . map ( ( item ) => (
2929 < div >
3030 { Object . entries ( item ) . map ( ( val , index ) => (
@@ -38,9 +38,7 @@ export const RetrievalTable = ({
3838 ) )
3939 ) : (
4040 < TableRow className = { styles . tableRow } >
41- < TableCell >
42- No activity on the { activity }
43- </ TableCell >
41+ < TableCell > No activity on the { activity } </ TableCell >
4442 </ TableRow >
4543 ) }
4644 </ TableBody >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export type InstanceRetrieval = {
1414 status : string
1515 currentJob ?: string
1616 activity : {
17- source : ActivityType [ ] | null
18- target : ActivityType [ ] | null
19- }
20- }
17+ source : ActivityType [ ]
18+ target : ActivityType [ ]
19+ } | null
20+ }
You can’t perform that action at this time.
0 commit comments