From 48e5ba23c8868f436750d460dd8ffdf6ddb5c347 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) Signed-off-by: TackAdam --- .../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 2b96c6a6c..5d8ae29d3 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)