Skip to content

Commit

Permalink
Not forcing required default value if required_keys is defined in opt…
Browse files Browse the repository at this point in the history
…ions.mapper
  • Loading branch information
Ricardoalso committed Sep 6, 2024
1 parent 46d29d8 commit 66eeb6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connector_importer/components/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def required_keys(self, create=False):
The recordset will use this to show required fields to users.
"""
req = dict(self.required)
req.update(self.work.options.mapper.get("required_keys", {}))
return req

return self.work.options.mapper.get("required_keys", {}) or req

translatable = []

Expand Down

0 comments on commit 66eeb6c

Please sign in to comment.