Skip to content

Commit

Permalink
fix(bulk-import): warning export now avoid undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 26, 2023
1 parent e08eca4 commit d514e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/bulk-imports/components/analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Analysis({ type, rows, handleForceImport }) {
const fieldKey = currentModel[header];
const fieldValues = row.body[fieldKey];

if (typeof fieldValues === 'object' && fieldValues !== null) {
if (Array.isArray(fieldValues)) {
value = fieldValues.filter(Boolean).join('; ');
} else if (fieldValues !== undefined) {
value = fieldValues;
Expand Down

0 comments on commit d514e22

Please sign in to comment.