Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Nov 20, 2023
1 parent c69709f commit 40489c1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/sn-pickers-react/src/components/picker/picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,8 @@ export const Picker: React.FunctionComponent<PickerProps<GenericContent>> = (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)

Check warning on line 138 in packages/sn-pickers-react/src/components/picker/picker.tsx

View check run for this annotation

Codecov / codecov/patch

packages/sn-pickers-react/src/components/picker/picker.tsx#L136-L138

Added lines #L136 - L138 were not covered by tests
}

return (
Expand Down

0 comments on commit 40489c1

Please sign in to comment.