Skip to content

Commit

Permalink
fix emptying source and target schema selection
Browse files Browse the repository at this point in the history
  • Loading branch information
konolak committed Jun 12, 2024
1 parent 076828f commit 26ba27c
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,21 +202,17 @@ export default function TargetAndSourceSchemaSelector({
}, [selectedTargetWorkspace, groupWorkspacePid]);

function setSource(selectedSchemaId: string | null) {
if (selectedSchemaId) {
setFormData({
...formData,
sourceSchema: selectedSchemaId,
sourceSchema: selectedSchemaId ?? '',
});
}
}

function setTarget(selectedSchemaId: string | null) {
if (selectedSchemaId) {
setFormData({
...formData,
targetSchema: selectedSchemaId,
targetSchema: selectedSchemaId ?? '',
});
}
}

return (
Expand Down

0 comments on commit 26ba27c

Please sign in to comment.