From 34cf8cb9e294287543cc92eb415827747a801d1c Mon Sep 17 00:00:00 2001 From: davivcu Date: Fri, 25 Aug 2023 16:02:14 +0200 Subject: [PATCH] same operation, foreach no longer needed; default values are set in $layouts when initialized --- src/app/services/editorial-conventions.service.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/app/services/editorial-conventions.service.ts b/src/app/services/editorial-conventions.service.ts index 5e3b5981d..c47b7ae05 100644 --- a/src/app/services/editorial-conventions.service.ts +++ b/src/app/services/editorial-conventions.service.ts @@ -136,15 +136,9 @@ export class EditorialConventionsService { Object.keys(c.attributes)).every((k) => attributes[k] === c.attributes[k])))?.layouts ?? undefined; if (externalLayouts) { - Object.keys(externalLayouts).forEach((editionLevel) => { - layouts = { - ...defaultKeys || {}, - [editionLevel]: { - ...defaultKeys ? defaultKeys[editionLevel] : {}, - ...externalLayouts[editionLevel], - }, - }; - }); + layouts = { + ...externalLayouts || {}, + } } return layouts;