Skip to content

Commit 077e411

Browse files
committed
[UXP-147] Fix issue with wrong import
1 parent 3b92879 commit 077e411

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/app/submission/objects/submission-objects.effects.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ import { NotificationOptions } from '../../shared/notifications/models/notificat
6868
import {
6969
WorkspaceitemSectionDetectDuplicateObject
7070
} from '../../core/submission/models/workspaceitem-section-deduplication.model';
71-
import { Simulate } from 'react-dom/test-utils';
72-
import error = Simulate.error;
7371

7472
@Injectable()
7573
export class SubmissionObjectEffects {
@@ -663,11 +661,11 @@ function filterErrors(sectionForm: FormState, sectionErrors: SubmissionSectionEr
663661
return [];
664662
}
665663
const filteredErrors = [];
666-
sectionErrors.forEach((err: SubmissionSectionError) => {
664+
sectionErrors.forEach((error: SubmissionSectionError) => {
667665
const errorPaths: SectionErrorPath[] = parseSectionErrorPaths(error.path);
668666
errorPaths.forEach((path: SectionErrorPath) => {
669667
if (path.fieldId && sectionForm.touched[path.fieldId]) {
670-
filteredErrors.push(err);
668+
filteredErrors.push(error);
671669
}
672670
});
673671
});

0 commit comments

Comments
 (0)