mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 06:23:03 +00:00
Merge pull request #1828 from FelixNicol/Virtual-metadatas-visibility-workflow-not-updated
Fix for PR#1822 - Adjusted two equality checks for scope type which always return false.
This commit is contained in:
@@ -261,10 +261,10 @@ export class SubmissionSectionFormComponent extends SectionModelComponent {
|
||||
|
||||
switch (scope) {
|
||||
case SubmissionScopeType.WorkspaceItem: {
|
||||
return this.submissionObject.type === WorkspaceItem.type;
|
||||
return (this.submissionObject as any).type === WorkspaceItem.type.value;
|
||||
}
|
||||
case SubmissionScopeType.WorkflowItem: {
|
||||
return this.submissionObject.type === WorkflowItem.type;
|
||||
return (this.submissionObject as any).type === WorkflowItem.type.value;
|
||||
}
|
||||
default: {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user