From a4a310e49aa5feddc47fb2bf572bf232c80465bb Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Fri, 5 May 2023 21:06:13 +0000 Subject: [PATCH] Fix delete failure when no osd item selected Signed-off-by: Joshua Li --- .../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)