Commit 68358625 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Resolve "Metainfo search is broken in v1"

parent d9e7fe80
......@@ -217,6 +217,9 @@ export function isReference(property) {
}
export function path(nameOrDef) {
if (nameOrDef?.name === 'energies') {
console.log(nameOrDef)
}
let def
if (typeof nameOrDef === 'string') {
def = defsByName[nameOrDef] && defsByName[nameOrDef].find(def => true)
......@@ -248,7 +251,7 @@ export function path(nameOrDef) {
def = parentSubSection
}
path.push(def.name)
if (def.m_def === 'SubSection') {
if (def.m_def === 'SubSection' || def.m_def === 'Quantity') {
def = def._section
} else {
def = def._parentSections && def._parentSections[0]
......
Supports Markdown
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