diff --git a/packages/dnb-design-system-portal/src/shared/parts/PropertiesTable.tsx b/packages/dnb-design-system-portal/src/shared/parts/PropertiesTable.tsx index a9a67118e0d..ab10970430b 100644 --- a/packages/dnb-design-system-portal/src/shared/parts/PropertiesTable.tsx +++ b/packages/dnb-design-system-portal/src/shared/parts/PropertiesTable.tsx @@ -180,9 +180,15 @@ function isString(str: string) { } function isPrimitive(type: string) { - return ['boolean', 'number', 'bigint', 'string', 'symbol'].includes( - typeWithoutArray(type), - ) + return [ + 'boolean', + 'true', + 'false', + 'number', + 'bigint', + 'string', + 'symbol', + ].includes(typeWithoutArray(type)) } function typeWithoutArray(type: string) {