Skip to content

Commit

Permalink
Merge pull request #184 from CSCfi/CSCFC4EMSCR-351v2
Browse files Browse the repository at this point in the history
fix emptying source and target schema selection
  • Loading branch information
konolak authored Jun 12, 2024
2 parents 076828f + 26ba27c commit 5938666
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 5938666

Please sign in to comment.