Skip to content

Commit

Permalink
refactor: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Nov 27, 2023
1 parent b263e80 commit 2c6f517
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/layoutValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const validateLineListLayout = (layout, { dryRun } = {}) => {
// entity type (input type TE only)
if (
layout.outputType === OUTPUT_TYPE_TRACKED_ENTITY &&
!layoutHasEntityTypeId(layout)
!layoutHasTrackedEntityTypeId(layout)
) {
if (dryRun) {
return false
Expand Down Expand Up @@ -80,7 +80,8 @@ export const validateLayout = (layout) => {

export const layoutHasProgramId = (layout) => Boolean(layout?.program?.id)

export const layoutHasEntityTypeId = (layout) => Boolean(layout?.entityType?.id)
export const layoutHasTrackedEntityTypeId = (layout) =>
Boolean(layout?.entityType?.id)

export const aoCreatedInEventReportsApp = (layout) => layout?.legacy

Expand Down

0 comments on commit 2c6f517

Please sign in to comment.