Skip to content

Commit

Permalink
Fixed the validation for source and target schema in schema diff tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-joshi committed Aug 14, 2023
1 parent 98fd51b commit 0e0eb3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ export function SchemaDiffCompare({ params }) {
setIsInit(false);

let raiseSelectionError = false;
if (!_.isEmpty(sourceData.scid) && !_.isEmpty(targetData.scid)) {
if (!_.isUndefined(sourceData.scid) && !_.isNull(sourceData.scid) &&
!_.isUndefined(targetData.scid) && !_.isNull(targetData.scid)) {
if (sourceData.sid === targetData.sid && sourceData.did === targetData.did && sourceData.scid === targetData.scid) {
raiseSelectionError = true;
}
Expand Down

0 comments on commit 0e0eb3c

Please sign in to comment.