Skip to content

Commit

Permalink
fix: UI breaking when globalConfig does not have inputs config
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpatel-crest committed Jun 3, 2021
1 parent 82b3aa7 commit 7cf8708
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/src/main/webapp/components/table/CustomTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ function CustomTable({
});

const serviceToStyleMap = {};
unifiedConfigs.pages.inputs.services.forEach((x) => {
serviceToStyleMap[x.name] = x.style === STYLE_PAGE ? STYLE_PAGE : STYLE_MODAL;
});
if (page === PAGE_INPUT) {
unifiedConfigs.pages.inputs.services.forEach((x) => {
serviceToStyleMap[x.name] = x.style === STYLE_PAGE ? STYLE_PAGE : STYLE_MODAL;
});
}

const query = useQuery();

Expand Down

0 comments on commit 7cf8708

Please sign in to comment.