From 241a5a89440f607d82a434197be102cebbbf6b07 Mon Sep 17 00:00:00 2001 From: Sebastian Qvarfordt Date: Wed, 3 Jun 2020 11:10:51 +0200 Subject: [PATCH] Convert Array to Array --- plugins/catalog/src/components/CatalogPage/CatalogPage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx index 725d266fbf..5951365b6e 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx @@ -73,7 +73,10 @@ const CatalogPage: FC<{}> = () => { if (value) { getLocationDataForEntities(value) - .then(location => location.filter(l => !!l)) + .then( + (location): Location[] => + location.filter(l => !!l) as Array, + ) .then(setLocations); } }, [value, catalogApi]);