Skip to content

Commit

Permalink
fix: copy minScore from filters to params (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet authored Nov 26, 2024
1 parent 1caf19d commit 7e50923
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/ui/src/composables/useSpaceSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ export function useSpaceSettings(space: Ref<Space>) {
if (space.additionalRawData?.filters.onlyMembers) {
validation.name = 'only-members';
validation.params = {};
} else if (
space.additionalRawData?.filters.minScore &&
validation.name === 'basic' &&
!validation.params.minScore
) {
validation.params.minScore = space.additionalRawData.filters.minScore;
} else if (validation.name === 'any') {
validation.name = 'basic';
validation.params = {
Expand Down

0 comments on commit 7e50923

Please sign in to comment.