Skip to content

Commit

Permalink
fix: query builder feature / project selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Jan 17, 2025
1 parent 397da68 commit 5c277e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion izanami-frontend/src/components/FeatureSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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!));
Expand Down
2 changes: 1 addition & 1 deletion izanami-frontend/src/components/ProjectSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5c277e7

Please sign in to comment.