Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
nomad-FAIR
Merge requests
!1102
Fixed issue with retrieving entry_id from older entries.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed issue with retrieving entry_id from older entries.
1344-ui-does-not-show-bs-and-dos-together
into
develop
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Lauri Himanen
requested to merge
1344-ui-does-not-show-bs-and-dos-together
into
develop
2 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#1344 (closed)
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
3128ef18
1 commit,
2 years ago
1 file
+
4
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gui/src/components/entry/OverviewView.js
+
4
−
2
Options
@@ -123,8 +123,10 @@ const OverviewView = React.memo(() => {
@@ -123,8 +123,10 @@ const OverviewView = React.memo(() => {
const
{
data
:
index
,
response
:
indexApiData
}
=
useIndex
()
const
{
data
:
index
,
response
:
indexApiData
}
=
useIndex
()
const
{
url
,
exists
,
editable
,
archive
:
archiveTmp
,
archiveApiData
}
=
useEntryStore
(
required
)
const
{
url
,
exists
,
editable
,
archive
:
archiveTmp
,
archiveApiData
}
=
useEntryStore
(
required
)
// The archive is accepted only once it is synced with the index
// The archive is accepted only once it is synced with the index. Notice that
const
archive
=
index
?.
entry_id
===
archiveTmp
?.
metadata
?.
entry_id
// we need to get the entry_id from data.entry_id, as some older entries will
// not have entry_id stored under data.archive.metadata.entry_id
const
archive
=
index
?.
entry_id
===
archiveApiData
?.
response
?.
data
?.
entry_id
?
archiveTmp
?
archiveTmp
:
undefined
:
undefined
Loading