From 40489c19692e4586e5767d1b2e0e407775a90e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Hassan?= Date: Mon, 20 Nov 2023 14:45:08 +0100 Subject: [PATCH] unit test fix --- .../sn-pickers-react/src/components/picker/picker.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/sn-pickers-react/src/components/picker/picker.tsx b/packages/sn-pickers-react/src/components/picker/picker.tsx index e02268c34..a78640736 100644 --- a/packages/sn-pickers-react/src/components/picker/picker.tsx +++ b/packages/sn-pickers-react/src/components/picker/picker.tsx @@ -134,14 +134,8 @@ export const Picker: React.FunctionComponent> = (pro const handleJumpToCurrentPath = (path: string) => { setNavigationPath(path) - - if (term?.length && term.length > 0) { - debouncedQuery('') - } - - if (mode !== PickerModes.TREE) { - setMode(PickerModes.TREE) - } + debouncedQuery('') + setMode(PickerModes.TREE) } return (