Skip to content
Snippets Groups Projects
Commit f40d3268 authored by esikkala's avatar esikkala
Browse files

Optionally fetchKnowledgeGraphMetadata

parent 0e068a4a
No related branches found
No related tags found
No related merge requests found
......@@ -36,10 +36,12 @@ const TextPage = props => {
const classes = useStyles()
useEffect(() => {
props.fetchKnowledgeGraphMetadata({ resultClass: 'perspective1KnowledgeGraphMetadata' })
if (props.fetchKnowledgeGraphMetadata) {
const resultClass = { props }
props.fetchKnowledgeGraphMetadata({ resultClass })
}
}, [])
// console.log(props.knowledgeGraphMetadata)
return (
<div className={classes.root}>
<Paper className={classes.layout}>
......@@ -53,7 +55,9 @@ TextPage.propTypes = {
/**
* The content of the page.
*/
children: PropTypes.node
children: PropTypes.node,
fetchKnowledgeGraphMetadata: PropTypes.func,
resultClass: PropTypes.string
}
export default TextPage
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment