Skip to content

Commit

Permalink
Fix selected mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeprins committed Oct 6, 2023
1 parent 425e217 commit e7a1b66
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/FieldMappingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ const FieldMappingForm = ({
(f) => f.finder === selectedCustomMapping.value
);

console.log('mappingObject', mappingObject);
console.log('customField', customField);
if (!mappingObject && !customField) return;

setSelectedMapping({
title: extractLastAttribute(
Expand All @@ -123,7 +122,12 @@ const FieldMappingForm = ({
}
buttonRef?.current?.focus();
}
}, [selectedMapping, extractLastAttribute, properties]);
}, [
selectedMapping,
extractLastAttribute,
properties,
selectedCustomMapping.value,
]);

const createCustomMapping = async () => {
if (!selectedConnection || !selectedMapping) return;
Expand Down

0 comments on commit e7a1b66

Please sign in to comment.