Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
ad830b65
Commit
ad830b65
authored
Mar 01, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/archive/metainfo.js
View file @
ad830b65
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment