Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

remove unnecessary reducer

Oleg Isonen87737a4b8338
diff --git a/packages/design-system/src/components/combobox.tsx b/packages/design-system/src/components/combobox.tsx
index 95123404b8..80e4530a9b 100644
--- a/packages/design-system/src/components/combobox.tsx
+++ b/packages/design-system/src/components/combobox.tsx
@@ -169,14 +169,6 @@ export function Combobox<Item>({
onItemSelect,
onItemHighlight,
}: ComboboxProps<Item>) {
- const stateReducer = useCallback((state, actionAndChanges) => {
- const { type, changes } = actionAndChanges;
- switch (type) {
- default:
- return changes; // otherwise business as usual.
- }
- }, []);
-
const {
items: foundItems,
getInputProps,
@@ -191,7 +183,6 @@ export function Combobox<Item>({
itemToString,
onItemSelect,
onItemHighlight,
- stateReducer,
});
return (
<Popper>