From 67688f46016c1435114d6d5ab81fb92b7d10b759 Mon Sep 17 00:00:00 2001 From: hiba-aldalaty Date: Wed, 8 Dec 2021 13:11:22 +0000 Subject: [PATCH] fix generic type error Signed-off-by: hiba-aldalaty --- packages/core-components/src/layout/Sidebar/utils.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core-components/src/layout/Sidebar/utils.ts b/packages/core-components/src/layout/Sidebar/utils.ts index 8fefb77bd9..1afebe796d 100644 --- a/packages/core-components/src/layout/Sidebar/utils.ts +++ b/packages/core-components/src/layout/Sidebar/utils.ts @@ -14,14 +14,11 @@ * limitations under the License. */ -import { Location, State, Path } from 'history'; +import { Location, Path } from 'history'; import { isEqual, isMatch } from 'lodash'; import qs from 'qs'; -export function isLocationMatch( - currentLocation: Location, - toLocation: Path, -) { +export function isLocationMatch(currentLocation: Location, toLocation: Path) { const toDecodedSearch = new URLSearchParams(toLocation.search).toString(); const toQueryParameters = qs.parse(toDecodedSearch);