From e4d1092ead065e677d1901756127e0f9dc93eafa Mon Sep 17 00:00:00 2001 From: FrancoisGrunert Date: Wed, 28 Feb 2024 10:14:07 +0100 Subject: [PATCH] [frontend] same in investigationAddStixCoreObjects --- .../investigations/InvestigationAddStixCoreObjects.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencti-platform/opencti-front/src/private/components/workspaces/investigations/InvestigationAddStixCoreObjects.jsx b/opencti-platform/opencti-front/src/private/components/workspaces/investigations/InvestigationAddStixCoreObjects.jsx index da95e29d8808..cb62760cd3a7 100644 --- a/opencti-platform/opencti-front/src/private/components/workspaces/investigations/InvestigationAddStixCoreObjects.jsx +++ b/opencti-platform/opencti-front/src/private/components/workspaces/investigations/InvestigationAddStixCoreObjects.jsx @@ -135,7 +135,7 @@ const InvestigationAddStixCoreObjects = (props) => { }; }; - const keyword = mapping && searchTerm.length === 0 ? selectedText : searchTerm; + const keyword = mapping && searchTerm?.length === 0 ? selectedText : searchTerm; const searchPaginationOptions = { ...addObjectsPaginationOptions, search: keyword,