mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(editor): Disable reset value for code and sql editors (no-changelog) (#16741)
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user