better column mapping

This commit is contained in:
SPRINX0\prochazka
2024-09-26 12:39:29 +02:00
parent 29072eb71b
commit 7549d37a04
2 changed files with 11 additions and 2 deletions

View File

@@ -221,8 +221,10 @@
onClick={() => {
showModal(ColumnMapModal, {
initialValue: $values[`columns_${row}`],
sourceTableInfo: $sourceDbinfo?.tables?.find(x => x.pureName == row),
targetTableInfo: $targetDbinfo?.tables?.find(x => x.pureName == values[`targetName_${row}`] || row),
sourceTableInfo: $sourceDbinfo?.tables?.find(x => x.pureName?.toLowerCase() == row?.toLowerCase()),
targetTableInfo: $targetDbinfo?.tables?.find(
x => x.pureName?.toLowerCase() == (values[`targetName_${row}`] || row)?.toLowerCase()
),
onConfirm: value => setFieldValue(`columns_${row}`, value),
});
}}