From 7f9e829b760a3c5af58f5d6b333e3c32239e34e8 Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Wed, 22 Dec 2021 10:41:44 -0600 Subject: [PATCH] Assert type cast to preserve existing behaviors --- packages/data/src/components/use-select/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data/src/components/use-select/index.ts b/packages/data/src/components/use-select/index.ts index a29c2553d4d8c..d490c820919af 100644 --- a/packages/data/src/components/use-select/index.ts +++ b/packages/data/src/components/use-select/index.ts @@ -109,7 +109,7 @@ export default function useSelect( // `_mapSelect` if we can. const callbackMapper = useCallback( hasMappingFunction ? mapSelect : noop, - deps ?? [] + deps as unknown[] ); const _mapSelect = hasMappingFunction ? callbackMapper : null;