File tree 1 file changed +7
-6
lines changed
src/components/page/ticket
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { useEffect , useState } from "react" ;
2
2
import { apiFetch } from "../../../hooks/apiFetch" ;
3
3
import RenderMarkdown from "../../../functions/RenderMarkdown" ;
4
+ import FieldData from "../../../functions/FieldData" ;
4
5
5
6
const LinkedItems = ( {
6
7
data_url = null
@@ -29,16 +30,16 @@ const LinkedItems = ({
29
30
return (
30
31
< section className = "linked-items" >
31
32
< h3 className = "linked-items" > Linked Items</ h3 >
32
- { page_data &&
33
+ { page_data && metadata &&
33
34
page_data . results . map ( ( linked_item ) => {
34
35
return (
35
36
< div className = "item" >
36
37
< div className = "markdown align-center" >
37
- < RenderMarkdown
38
- class = 'align-center'
39
- >
40
- { linked_item . display_name }
41
- </ RenderMarkdown >
38
+ < FieldData
39
+ metadata = { metadata }
40
+ field_name = 'display_name'
41
+ data = { linked_item }
42
+ / >
42
43
</ div >
43
44
</ div > )
44
45
} )
You can’t perform that action at this time.
0 commit comments