Commit 3c8abba3 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed enc link for calcs without material.

parent 4c8f2b1a
......@@ -18,7 +18,7 @@ export default function DFTEntryOverview(props) {
} catch {}
name = name || 'unnamed'
if (encyclopediaEnabled && data.encyclopedia && data.encyclopedia.material && data.published && !data.with_embargo) {
if (encyclopediaEnabled && data?.encyclopedia?.material?.material_id && data.published && !data.with_embargo) {
const url = `${appBase}/encyclopedia/#/material/${data.encyclopedia.material.material_id}`
return (
<Tooltip title="Show the material of this entry in the NOMAD Encyclopedia.">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment