Skip to content

Commit

Permalink
feat(component): Fetch ticket linked items metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Jan 8, 2025
1 parent 7db3a12 commit e595c07
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/page/ticket/LinkedItems.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ const LinkedItems = ({
}) => {

const [ page_data, setPageData ] = useState(null)
const [ metadata, setMetaData ] = useState(null)

useEffect(() => {

apiFetch(
data_url,
(data) => {
(data, metadata) => {

setPageData(data)

setMetaData(metadata)

},
undefined,
undefined,
false
)
}, [ data_url ])

Expand Down

0 comments on commit e595c07

Please sign in to comment.