Skip to content

Commit

Permalink
fix(admin-ui): fix properties page #848
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Mar 13, 2023
1 parent 092b464 commit 1aa30da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin-ui/app/components/OuterClick/OuterClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class OuterClick extends React.Component {
}

openSidebar(path){
const exists= path.some(item => item.id === "navToggleBtn")
const exists= path?.some(item => item.id === "navToggleBtn")
if(exists)
return false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function JsonPropertyBuilder({
)
}
function isObject(item) {
return typeof item === 'object'
if(item != null){
return typeof item === 'object'
}else{
return false;
}
}

function generateLabel(name) {
Expand Down Expand Up @@ -130,7 +134,7 @@ function JsonPropertyBuilder({
{propKey.toUpperCase()}{' '}
</Accordion.Header>
<Accordion.Body>
{Object.keys(propValue).map((item, idx) => (
{Object.keys(propValue)?.map((item, idx) => (
<JsonPropertyBuilder
key={idx}
propKey={item}
Expand Down Expand Up @@ -172,7 +176,7 @@ function JsonPropertyBuilder({
</Col>
</FormGroup>
)}
{Object.keys(propValue).map((objKey, idx) => (
{Object.keys(propValue)?.map((objKey, idx) => (
<JsonPropertyBuilder
key={idx}
propKey={objKey}
Expand Down

0 comments on commit 1aa30da

Please sign in to comment.