diff --git a/packages/editor-ui/src/components/FilterConditions/Condition.vue b/packages/editor-ui/src/components/FilterConditions/Condition.vue index 71efc75728223..00d83218c1b3e 100644 --- a/packages/editor-ui/src/components/FilterConditions/Condition.vue +++ b/packages/editor-ui/src/components/FilterConditions/Condition.vue @@ -17,6 +17,7 @@ import { type FilterOperatorId } from './constants'; import { getFilterOperator, handleOperatorChange, + inferOperatorType, isEmptyInput, operatorTypeToNodeProperty, resolveCondition, @@ -70,6 +71,14 @@ const conditionResult = computed(() => resolveCondition({ condition: condition.value, options: props.options }), ); +const suggestedType = computed(() => { + if (conditionResult.value.status !== 'resolve_error') { + return inferOperatorType(conditionResult.value.resolved.leftValue); + } + + return 'any'; +}); + const allIssues = computed(() => { if (conditionResult.value.status === 'validation_error' && !isEmpty.value) { return [conditionResult.value.error]; @@ -176,6 +185,7 @@ const onBlur = (): void => {