diff --git a/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js b/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js index a55fbf414..774a27e30 100644 --- a/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js +++ b/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js @@ -30,34 +30,6 @@ export default function ItemCategoryForm({ }) { const categoryNameFieldRef = useAutofocus(); - // Filters Item Categories list. - const filterItemCategories = useCallback( - (query, category, _index, exactMatch) => { - const normalizedTitle = category.name.toLowerCase(); - const normalizedQuery = query.toLowerCase(); - - if (exactMatch) { - return normalizedTitle === normalizedQuery; - } else { - return normalizedTitle.indexOf(normalizedQuery) >= 0; - } - }, - [], - ); - - const parentCategoryItem = useCallback( - (category, { handleClick, modifiers, query }) => { - return ( - - ); - }, - [], - ); - return (