From f62345a9c9afcc5b8c55f339fc36c72c3f946126 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Fri, 5 May 2023 14:49:33 -0700 Subject: [PATCH] Fix delete failure when no osd item selected (#452) Signed-off-by: Joshua Li (cherry picked from commit a4a310e49aa5feddc47fb2bf572bf232c80465bb) (cherry picked from commit 324939f6e4f7540987b131b4c640ff64ebfaf7e9) --- .../saved_objects/saved_object_client/saved_objects_actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/services/saved_objects/saved_object_client/saved_objects_actions.ts b/public/services/saved_objects/saved_object_client/saved_objects_actions.ts index 2b96c6a6c3..5d8ae29d39 100644 --- a/public/services/saved_objects/saved_object_client/saved_objects_actions.ts +++ b/public/services/saved_objects/saved_object_client/saved_objects_actions.ts @@ -103,7 +103,7 @@ export class SavedObjectsActions { const remainingObjectIds = [ ...new Set( - idMap.non_osd.concat( + idMap.non_osd?.concat( Object.entries(responses.deleteResponseList) .filter(([_, status]) => status !== 'OK') .map(([id, _]) => id)