From dd55d624451935baa188c89d81f626b90b10fa06 Mon Sep 17 00:00:00 2001 From: David Newell Date: Fri, 17 Nov 2023 15:50:17 +0000 Subject: [PATCH] fix: protect against null in copytoclipboard (#18716) --- frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx b/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx index c074b490fb35a..6729d55ee42b4 100644 --- a/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx +++ b/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx @@ -283,7 +283,7 @@ export function PropertiesTable({ title: '', width: 0, render: function Copy(_, item: any): JSX.Element | false { - if (Array.isArray(item[1]) || item[1] instanceof Object) { + if (Array.isArray(item[1]) || item[1] instanceof Object || item[1] === null) { return false } return (