From f6e46a67f80ba2abea6087e80a28a4037adff178 Mon Sep 17 00:00:00 2001 From: neptunian Date: Mon, 9 Dec 2019 09:39:45 -0500 Subject: [PATCH] remove unneeded spread --- .../legacy/plugins/epm/public/screens/add_data_source/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/legacy/plugins/epm/public/screens/add_data_source/index.tsx b/x-pack/legacy/plugins/epm/public/screens/add_data_source/index.tsx index 192bfd7960400..0f0b2a7f5463c 100644 --- a/x-pack/legacy/plugins/epm/public/screens/add_data_source/index.tsx +++ b/x-pack/legacy/plugins/epm/public/screens/add_data_source/index.tsx @@ -46,7 +46,7 @@ export function AddDataSource({ pkgkey }: AddDataSourceProps) { useEffect(() => { getPackageInfoByKey(pkgkey).then(response => { - setInfo({ ...response }); + setInfo(response); }); }, [pkgkey]);