diff --git a/frontend/components/software/edit/information/AutosaveSoftwareCategories.tsx b/frontend/components/software/edit/information/AutosaveSoftwareCategories.tsx index f1906e32e..cd9024487 100644 --- a/frontend/components/software/edit/information/AutosaveSoftwareCategories.tsx +++ b/frontend/components/software/edit/information/AutosaveSoftwareCategories.tsx @@ -54,7 +54,7 @@ export default function AutosaveSoftwareCategories({ softwareId, categories: def }) } - const onAdd2: ChangeEventHandler = (event) => { + const onAdd: ChangeEventHandler = (event) => { const categoryIdx = parseInt(event. target.value ?? '') if (isNaN(categoryIdx)) return const path = availableCategoryPaths[categoryIdx] @@ -62,7 +62,7 @@ export default function AutosaveSoftwareCategories({ softwareId, categories: def // console.log('click', { id: categoryId, index: categoryIdx }) addCategory(path) // reset selection - event.target.value = 'null' + event.target.value = 'none' } const onDelete = (category: SelectedCategory) => { @@ -85,8 +85,8 @@ export default function AutosaveSoftwareCategories({ softwareId, categories: def />
- + {availableCategoryPaths.map((categoryPath, index) => )}
diff --git a/frontend/pages/software/[slug]/index.tsx b/frontend/pages/software/[slug]/index.tsx index 92f09b627..82ddae900 100644 --- a/frontend/pages/software/[slug]/index.tsx +++ b/frontend/pages/software/[slug]/index.tsx @@ -110,7 +110,7 @@ export default function SoftwareIndexPage(props:SoftwareIndexData) { if (!software?.brand_name){ return } - console.log('SoftwareIndexPage', categories) + // console.log('SoftwareIndexPage...releases...', releases) return ( <> {/* Page Head meta tags */}