From 5c277e738ef074f6bafb9d567b0b2542027ca1b0 Mon Sep 17 00:00:00 2001 From: Benjamin Cavy Date: Fri, 17 Jan 2025 16:32:09 +0100 Subject: [PATCH] fix: query builder feature / project selection --- izanami-frontend/src/components/FeatureSelector.tsx | 2 +- izanami-frontend/src/components/ProjectSelector.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/izanami-frontend/src/components/FeatureSelector.tsx b/izanami-frontend/src/components/FeatureSelector.tsx index 573f9a964..530824ece 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 8b019e57a..0b03f2941 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));