Skip to content

Commit

Permalink
fix: changes due to table refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
louisewang1 committed Dec 16, 2021
1 parent 96d1c54 commit aabd75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/item/sharing/CategorySelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function CategorySelection({ item, edit }) {
// process data
const categoriesMap = allCategories?.groupBy((entry) => entry.type);
const ageList = categoriesMap
?.get(categoryTypes?.filter((type) => type.name === 'age').get(0).id)
?.get(categoryTypes?.filter((type) => type.name === 'level').get(0).id)
?.toArray();
const disciplineList = categoriesMap
?.get(categoryTypes?.filter((type) => type.name === 'discipline').get(0).id)
Expand Down Expand Up @@ -127,7 +127,7 @@ function CategorySelection({ item, edit }) {
{t('Category')}
</Typography>
<>
<Typography variant="body1">{t('Age Range')}</Typography>
<Typography variant="body1">{t('Level')}</Typography>
<Autocomplete
disabled={!edit || !ageList}
multiple
Expand Down

0 comments on commit aabd75b

Please sign in to comment.