Skip to content

Commit

Permalink
Fix: Add condition to check data type before rendering IconButton in …
Browse files Browse the repository at this point in the history
…DataGridList (#186)
  • Loading branch information
kartik-gupta-ij committed May 25, 2024
1 parent 4b33e60 commit f612bf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Points/DataGridList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' && (
<IconButton
size="small"
onClick={() => {
Expand Down

0 comments on commit f612bf8

Please sign in to comment.