Skip to content

Commit

Permalink
[refactor] GH-99 Fix optional viewKindElement.elements
Browse files Browse the repository at this point in the history
  • Loading branch information
amivanoff committed Sep 22, 2021
1 parent abca8ff commit 41d32ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/graphRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const GraphRenderer = observer<RenderProps>((props) => {
console.log('GraphRenderer - start');
// ensure that we render Graph only after all data is not empty
let isAllNotEmpty = true;
const elements = findElementsRecursive(viewDescr, viewKindElement.elements, (params: any) => {
const elements = findElementsRecursive(viewDescr, viewKindElement.elements || [], (params: any) => {
const collIriOverride = params[2]; ////[id, collIri, collIriOverride, inCollPath, viewKindElement, viewDescrElement]
if (!store.getColl(collIriOverride) || store.getColl(collIriOverride)?.data.length <= 0) {
isAllNotEmpty = false;
Expand Down

0 comments on commit 41d32ce

Please sign in to comment.