Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dspace7 Angular
Manage
Activity
Members
Labels
Plan
Issues
42
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
vtechworks
Dspace7 Angular
Commits
b5ab5845
Commit
b5ab5845
authored
5 years ago
by
lotte
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug where the metadata field type got lost when first loading the edit item metadata page
parent
e2f93a38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/core/registry/registry.service.ts
+2
-1
2 additions, 1 deletion
src/app/core/registry/registry.service.ts
with
2 additions
and
1 deletion
src/app/core/registry/registry.service.ts
+
2
−
1
View file @
b5ab5845
...
@@ -196,7 +196,8 @@ export class RegistryService {
...
@@ -196,7 +196,8 @@ export class RegistryService {
const
metadatafieldsObs
:
Observable
<
MetadataField
[]
>
=
rmrObs
.
pipe
(
const
metadatafieldsObs
:
Observable
<
MetadataField
[]
>
=
rmrObs
.
pipe
(
map
((
rmr
:
RegistryMetadatafieldsResponse
)
=>
rmr
.
metadatafields
),
map
((
rmr
:
RegistryMetadatafieldsResponse
)
=>
rmr
.
metadatafields
),
map
((
metadataFields
:
MetadataField
[])
=>
metadataFields
)
/* Make sure to explicitly cast this into a MetadataField object, on first page loads this object comes from the object cache created by the server and its prototype is unknown */
map
((
metadataFields
:
MetadataField
[])
=>
metadataFields
.
map
((
metadataField
:
MetadataField
)
=>
Object
.
assign
(
new
MetadataField
(),
metadataField
)))
);
);
const
pageInfoObs
:
Observable
<
PageInfo
>
=
requestEntryObs
.
pipe
(
const
pageInfoObs
:
Observable
<
PageInfo
>
=
requestEntryObs
.
pipe
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment