Skip to content

Commit

Permalink
fix: value mapping fix when mapping false checkbox fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgrimwade committed Aug 9, 2023
1 parent 8ac3c5c commit 9de9fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/models/job_models/migrationJobTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ export default class MigrationJobTask {

records.forEach((record: any) => {
let newValue: any;
let rawValue = (String(record[field] || "")).trim();
let rawValue = ((typeof record[field] === 'undefined') ? "" : String(record[field])).trim();
if (regexp) {
// Use regex
try {
Expand Down

0 comments on commit 9de9fd4

Please sign in to comment.