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;

View File

@@ -18,7 +18,6 @@
font-size: $navbar-font-size !important;
line-height: $line-height-base !important;
background-image:none !important;
font-weight: 600 !important;
border-radius: $border-radius;
border-color:$color-gray;
opacity: 1;
@@ -100,7 +99,6 @@
font-size: $font-size-base !important;
line-height: $line-height-base !important;
background-image:none !important;
font-weight: 600 !important;
border-radius: $border-radius;
border-color:$color-gray;
opacity: 1;

View File

@@ -1107,7 +1107,6 @@ textarea {
::-webkit-scrollbar-thumb {
border: 0.25rem solid transparent;
border-radius: $border-radius*2;
background-color: rgba($scrollbar-base-color, 0.7);
background: rgba($scrollbar-base-color, 0.7) !important;
background-clip: content-box !important;
}
@@ -1115,7 +1114,7 @@ textarea {
::-webkit-scrollbar-thumb:hover {
border: 0.25rem solid transparent;
background-color: $scrollbar-base-color !important;
ackground-clip: content-box !important;
background-clip: content-box !important;
}

View File

@@ -70,7 +70,7 @@
}
i {
display: inline-block;
font: normal normal normal 18px/1 "default-icons";
font: normal 18px/1 "default-icons";
font-size: 18px;
text-align: center;
height: 21px !important;
@@ -104,7 +104,6 @@
transform: none !important;
}
&.loading:before {
background-position: 6px center !important;
font-weight: 900;
font-size: 0.6rem;
line-height: 2;
@@ -136,7 +135,6 @@
font: inherit;
flex-grow: 1;
user-select: none;
cursor: default;
color: $tree-text-fg !important;
margin-left: 3px;
cursor: pointer !important;