From acb6e425c3e0df1099440ebdba4ea55224e96d06 Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Wed, 19 Jul 2023 17:00:31 -0700 Subject: [PATCH] Add type check Signed-off-by: Tyler Ohlsen --- src/core/public/saved_objects/saved_objects_client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/public/saved_objects/saved_objects_client.ts b/src/core/public/saved_objects/saved_objects_client.ts index 2586a3c52fcf..6e5482614e40 100644 --- a/src/core/public/saved_objects/saved_objects_client.ts +++ b/src/core/public/saved_objects/saved_objects_client.ts @@ -348,7 +348,9 @@ export class SavedObjectsClient { }; const renamedQuery = renameKeys(renameMap, options); - const query = pick.apply(null, [renamedQuery, ...Object.values(renameMap)]); + const query = pick.apply(null, [renamedQuery, ...Object.values(renameMap)]) as Partial< + Record + >; // has_reference needs post-processing since it is an object that needs to be read as // a query param