diff --git a/src/components/AreaSelection.tsx b/src/components/AreaSelection.tsx index 8a3dcf09..beeba37e 100644 --- a/src/components/AreaSelection.tsx +++ b/src/components/AreaSelection.tsx @@ -191,7 +191,7 @@ const AreaSelection: React.FC = ({ md={inModal ? 12 : 4} lg={inModal ? 12 : isCenterSelection ? 3 : 4} > - {shouldRenderSelectCheckmarks && ( + {shouldRenderSelectCheckmarks && blocks.length > 0 &&( block.label) diff --git a/src/utils/Helper.ts b/src/utils/Helper.ts index 9aeaea82..cd68f48d 100644 --- a/src/utils/Helper.ts +++ b/src/utils/Helper.ts @@ -102,7 +102,7 @@ export const transformLabel = (label: string): string => { }; export const transformArray = (arr: State[]): State[] => { - if (!arr) { + if (!arr || !Array.isArray(arr)) { return arr; } return arr?.map((item) => ({