From f612bf8cd42dce25c3680ccf46c4b366500c26eb Mon Sep 17 00:00:00 2001 From: Kartik Gupta <84975264+kartik-gupta-ij@users.noreply.github.com> Date: Sat, 25 May 2024 22:25:57 +0530 Subject: [PATCH] Fix: Add condition to check data type before rendering IconButton in DataGridList (#186) --- src/components/Points/DataGridList.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Points/DataGridList.jsx b/src/components/Points/DataGridList.jsx index 30a7f86e..f6eb657a 100644 --- a/src/components/Points/DataGridList.jsx +++ b/src/components/Points/DataGridList.jsx @@ -71,7 +71,8 @@ export const DataGridList = function ({ data = {}, specialCases = {}, onConditio (payloadSchema[key].data_type === 'keyword' || payloadSchema[key].data_type === 'text' || payloadSchema[key].data_type === 'integer' || - payloadSchema[key].data_type === 'bool') && ( + payloadSchema[key].data_type === 'bool') && + typeof data[key] !== 'object' && ( {