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

Merge branch '752-metainfo-search-is-broken-in-v1' into 'v1.0.3'

Resolve "Metainfo search is broken in v1"

See merge request !574
parents d9e7fe80 68358625
Pipeline #124097 passed with stages
in 33 minutes and 43 seconds
......@@ -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