mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
[TLC-674] Properly test for existence of duplicates section
This commit is contained in:
@@ -449,7 +449,7 @@ export class SubmissionObjectEffects {
|
||||
// or if configuration overrides this behaviour
|
||||
if (!alwaysDisplayDuplicates()) {
|
||||
const duplicatesSectionId = findKey(currentState.sections, (section) => section.sectionType === SectionsType.Duplicates);
|
||||
if (isNotUndefined(duplicatesSectionId) && isEmpty((sections[duplicatesSectionId] as WorkspaceitemSectionDuplicatesObject).potentialDuplicates)) {
|
||||
if (isNotUndefined(duplicatesSectionId) && sections.hasOwnProperty(duplicatesSectionId) && isEmpty((sections[duplicatesSectionId] as WorkspaceitemSectionDuplicatesObject).potentialDuplicates)) {
|
||||
mappedActions.push(new CleanDuplicateDetectionAction(submissionId));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user