diff --git a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx index 0e1d662c9b..5271826b39 100644 --- a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx +++ b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx @@ -130,6 +130,7 @@ export const AdvancedPlayground: VFC<{ action?: () => void ) => { try { + setConfigurationError(undefined); const parsedContext = JSON.parse(context || '{}'); const response = await evaluateAdvancedPlayground({ environments: resolveEnvironments(environments), @@ -143,7 +144,6 @@ export const AdvancedPlayground: VFC<{ if (action && typeof action === 'function') { action(); } - setConfigurationError(undefined); setResults(response); } catch (error: unknown) { if (error instanceof BadRequestError) { diff --git a/src/lib/features/playground/validateQueryComplexity.ts b/src/lib/features/playground/validateQueryComplexity.ts index 117de5ae80..e3d794f36f 100644 --- a/src/lib/features/playground/validateQueryComplexity.ts +++ b/src/lib/features/playground/validateQueryComplexity.ts @@ -11,7 +11,7 @@ export const validateQueryComplexity = ( const totalCount = environmentsCount * featuresCount * contextCombinationsCount; - const reason = `Rejecting evaluation as it would generate ${totalCount} combinations exceeding ${MAX_COMPLEXITY} limit. `; + const reason = `Rejecting evaluation as it would generate ${totalCount} combinations exceeding ${limit} limit. `; const action = `Please reduce the number of selected environments (${environmentsCount}), features (${featuresCount}), context field combinations (${contextCombinationsCount}).`; if (totalCount > limit) {