diff --git a/apps/client/src/widgets/type_widgets/options/advanced.tsx b/apps/client/src/widgets/type_widgets/options/advanced.tsx index c9d9b4a4f..2959c5a1c 100644 --- a/apps/client/src/widgets/type_widgets/options/advanced.tsx +++ b/apps/client/src/widgets/type_widgets/options/advanced.tsx @@ -191,7 +191,6 @@ function ExperimentalOptions() { values={filteredExperimentalFeatures} keyProperty="id" titleProperty="name" - descriptionProperty="description" currentValue={enabledExperimentalFeatures} onChange={setEnabledExperimentalFeatures} /> diff --git a/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx b/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx index baa37baf5..a2f48a04f 100644 --- a/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx +++ b/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx @@ -1,17 +1,14 @@ -import FormCheckbox from "../../../react/FormCheckbox"; - interface CheckboxListProps { values: T[]; keyProperty: keyof T; titleProperty?: keyof T; disabledProperty?: keyof T; - descriptionProperty?: keyof T; currentValue: string[]; onChange: (newValues: string[]) => void; columnWidth?: string; } -export default function CheckboxList({ values, keyProperty, titleProperty, disabledProperty, descriptionProperty, currentValue, onChange, columnWidth }: CheckboxListProps) { +export default function CheckboxList({ values, keyProperty, titleProperty, disabledProperty, currentValue, onChange, columnWidth }: CheckboxListProps) { function toggleValue(value: string) { if (currentValue.includes(value)) { // Already there, needs removing. @@ -25,17 +22,20 @@ export default function CheckboxList({ values, keyProperty, titleProperty, di return (
    {values.map(value => ( -
  • - toggleValue(String(value[keyProperty]))} - /> +
  • +
  • ))}
- ); -} + ) +} \ No newline at end of file