diff --git a/packages/frontend/editor-ui/src/components/ParameterOptions.vue b/packages/frontend/editor-ui/src/components/ParameterOptions.vue index 416fb9e40e..94fb6835d8 100644 --- a/packages/frontend/editor-ui/src/components/ParameterOptions.vue +++ b/packages/frontend/editor-ui/src/components/ParameterOptions.vue @@ -121,7 +121,16 @@ const actions = computed(() => { disabled: isDefault.value, }; - const parameterActions = hasFocusAction.value ? [resetAction, focusAction] : [resetAction]; + // The reset value action is not working correctly for these + const hasResetAction = !['codeNodeEditor', 'sqlEditor'].includes( + props.parameter.typeOptions?.editor ?? '', + ); + + // Conditionally build actions array without nulls to ensure correct typing + const parameterActions = [ + hasResetAction ? [resetAction] : [], + hasFocusAction.value ? [focusAction] : [], + ].flat(); if ( hasRemoteMethod.value ||