Fix for PR#1822 - Fix is in section-form-component.ts. Adjusted two equality checks for scope type which always returned false.

This commit is contained in:
Félix Jolin-Nicol
2022-09-15 14:48:57 -04:00
parent 6d361beb88
commit fcae738db6
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;