From 7e509234c54d3d1bbc1d0fa25d27328f599e72a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Tkaczy=C5=84ski?= Date: Tue, 26 Nov 2024 22:41:02 +0100 Subject: [PATCH] fix: copy minScore from filters to params (#995) --- apps/ui/src/composables/useSpaceSettings.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/ui/src/composables/useSpaceSettings.ts b/apps/ui/src/composables/useSpaceSettings.ts index 7328a8fe5..513b6118a 100644 --- a/apps/ui/src/composables/useSpaceSettings.ts +++ b/apps/ui/src/composables/useSpaceSettings.ts @@ -442,6 +442,12 @@ export function useSpaceSettings(space: Ref) { 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 = {