diff --git a/izanami-frontend/src/components/FeatureSelector.tsx b/izanami-frontend/src/components/FeatureSelector.tsx index 573f9a96..530824ec 100644 --- a/izanami-frontend/src/components/FeatureSelector.tsx +++ b/izanami-frontend/src/components/FeatureSelector.tsx @@ -55,7 +55,7 @@ export function FeatureSelector(props: { return { label: v, value: v }; } }) - : [], + : undefined, onChange: (newValue: any[]) => { console.log("newValue", newValue); onChange?.(newValue.map(({ value }) => value!)); diff --git a/izanami-frontend/src/components/ProjectSelector.tsx b/izanami-frontend/src/components/ProjectSelector.tsx index 8b019e57..0b03f294 100644 --- a/izanami-frontend/src/components/ProjectSelector.tsx +++ b/izanami-frontend/src/components/ProjectSelector.tsx @@ -37,7 +37,7 @@ export function ProjectSelector(props: { value={ props.value ? options.filter(({ value }) => props.value?.includes(value ?? "")) - : [] + : undefined } onChange={(newValue) => { onChange?.(newValue.map(({ value }) => value));