Skip to content

Commit

Permalink
Merge pull request #2439 from zetkin/issue-2437/gender-import
Browse files Browse the repository at this point in the history
Prevent importing multiple genders to a single person
  • Loading branch information
richardolsson authored Dec 23, 2024
2 parents a69ba61 + 9206380 commit 7555e1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features/import/hooks/useColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export default function useColumn(orgId: number) {
return column.field == value.slice(6);
}

if (column.kind == ColumnKind.GENDER) {
return column.field == value;
}

if (column.kind == ColumnKind.DATE) {
return column.field == value.slice(5);
}
Expand Down

0 comments on commit 7555e1c

Please sign in to comment.