From 2dfc2556d121eabbed5c95132d9113492cd95284 Mon Sep 17 00:00:00 2001 From: shubhamraj-git Date: Sun, 29 Dec 2024 23:26:11 +0530 Subject: [PATCH] not edit key --- .../ui/src/pages/Variables/ManageVariable/VariableForm.tsx | 7 ++++++- airflow/ui/src/queries/useEditVariable.ts | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/airflow/ui/src/pages/Variables/ManageVariable/VariableForm.tsx b/airflow/ui/src/pages/Variables/ManageVariable/VariableForm.tsx index de63f0f993a88..8bf06e56f28cf 100644 --- a/airflow/ui/src/pages/Variables/ManageVariable/VariableForm.tsx +++ b/airflow/ui/src/pages/Variables/ManageVariable/VariableForm.tsx @@ -73,7 +73,12 @@ const VariableForm = ({ Key - + {fieldState.error ? ( {fieldState.error.message} ) : undefined} diff --git a/airflow/ui/src/queries/useEditVariable.ts b/airflow/ui/src/queries/useEditVariable.ts index 472b3daded097..50701863a7be7 100644 --- a/airflow/ui/src/queries/useEditVariable.ts +++ b/airflow/ui/src/queries/useEditVariable.ts @@ -63,9 +63,6 @@ export const useEditVariable = ( const editVariable = (addVariableRequestBody: VariableBody) => { const updateMask: Array = []; - if (addVariableRequestBody.key !== initialVariable.key) { - updateMask.push("key"); - } if (addVariableRequestBody.value !== initialVariable.value) { updateMask.push("value"); }