remove logs, fix lint issues

This commit is contained in:
Art Lowel
2020-04-15 11:24:24 +02:00
parent 66a996bb0f
commit d6087e3620
8 changed files with 3 additions and 20 deletions

View File

@@ -73,7 +73,7 @@ export class SubmissionObjectEffects {
const config = sectionDefinition._links.config ? (sectionDefinition._links.config.href || sectionDefinition._links.config) : '';
const enabled = (sectionDefinition.mandatory) || (isNotEmpty(action.payload.sections) && action.payload.sections.hasOwnProperty(sectionId));
let sectionData;
if (sectionDefinition.sectionType != SectionsType.SubmissionForm) {
if (sectionDefinition.sectionType !== SectionsType.SubmissionForm) {
sectionData = (isNotUndefined(action.payload.sections) && isNotUndefined(action.payload.sections[sectionId])) ? action.payload.sections[sectionId] : Object.create(null);
} else {
sectionData = action.payload.item.metadata;
@@ -251,10 +251,6 @@ export class SubmissionObjectEffects {
@Effect() addAllMetadataToSectionData = this.actions$.pipe(
ofType(SubmissionObjectActionTypes.UPLOAD_SECTION_DATA),
tap((v) => {
if ((v as any).payload.sectionId === 'orgUnitStep')
console.log('EFFECT', 'in', v)
}),
mergeMap((action: UpdateSectionDataAction) => {
const sectionKeys = Object.keys(action.payload.data);