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:
Tim Donohue
2022-10-03 17:15:26 -05:00
committed by GitHub
4 changed files with 9 additions and 6 deletions

View File

@@ -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;