Skip to content

Commit

Permalink
4210 - Default value empty object for section description metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sorja committed Jan 15, 2025
1 parent 3430c09 commit 4465a23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/meta/assessment/subSections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const cloneProps = (props: { cycleSource: Cycle; cycleTarget: Cycle; subSection:
// delete nationalData->dataSources->text needed only in FRA 2025
Objects.unset(descriptionsSource, ['nationalData', 'dataSources', 'text'])
_props.descriptions[cycleTargetUuid] = descriptionsSource
} else {
_props.descriptions[cycleTargetUuid] = {}
}
if (!Objects.isNil(_props.hidden?.[cycleSourceUuid]))
_props.hidden[cycleTargetUuid] = Objects.cloneDeep(_props.hidden[cycleSourceUuid])
Expand Down

0 comments on commit 4465a23

Please sign in to comment.