From 7cf8708ee6730b9bcefa1e0cdcd02b02f737f58a Mon Sep 17 00:00:00 2001 From: Harsh Patel Date: Thu, 3 Jun 2021 14:34:09 +0000 Subject: [PATCH] fix: UI breaking when globalConfig does not have inputs config --- ui/src/main/webapp/components/table/CustomTable.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/src/main/webapp/components/table/CustomTable.jsx b/ui/src/main/webapp/components/table/CustomTable.jsx index a44c2d4cd..a531fe301 100755 --- a/ui/src/main/webapp/components/table/CustomTable.jsx +++ b/ui/src/main/webapp/components/table/CustomTable.jsx @@ -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();