Fixed SonarQube issues.

This commit is contained in:
Nikhil Mohite
2022-01-07 19:58:19 +05:30
committed by Akshay Joshi
parent ad862f4084
commit af6ff20020
7 changed files with 9 additions and 26 deletions

View File

@@ -505,7 +505,7 @@ function SchemaDialogView({
if(!getInitData) {
throw new Error('getInitData must be passed for edit');
}
getInitData && getInitData().then((data)=>{firstEleRef.current;
getInitData && getInitData().then((data)=>{
data = data || {};
/* Set the origData to incoming data, useful for comparing and reset */
schema.origData = prepareData(data || {});

View File

@@ -132,7 +132,6 @@ export class ManageTreeNodes {
}
}
throw new Error("Node Load Error...");
return [];
}
let treeData = null;