[ENG-1737] Fix updateFirstActiveItem options type (#2328)

update type
This commit is contained in:
nikec 2024-04-15 12:01:29 +02:00 committed by GitHub
parent aafd8e29a1
commit 73cb692218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,7 +75,10 @@ export const useKeySelection = (grid: Grid, options: Options = { scrollToEnd: fa
}, [explorer.items]);
const updateFirstActiveItem = useCallback(
(item: ExplorerItem | null, options: UpdateActiveItemOptions = {}) => {
(
item: ExplorerItem | null,
options: Omit<UpdateActiveItemOptions, 'updateFirstItem'> = {}
) => {
if (explorerOperatingSystem !== 'windows') return;
firstActiveItem.current = item;