From 56187949276e1d35aecf7c806daf5756fed89a30 Mon Sep 17 00:00:00 2001 From: Felix Han Date: Thu, 20 May 2021 11:46:17 +1200 Subject: [PATCH] fix(k8s-config): check for config editor change before setting as dirty --- .../kubernetesConfigurationDataController.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js b/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js index 593fdc347..af7685b12 100644 --- a/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js +++ b/app/kubernetes/components/kubernetes-configuration-data/kubernetesConfigurationDataController.js @@ -43,8 +43,10 @@ class KubernetesConfigurationDataController { } async editorUpdateAsync(cm) { - this.formValues.DataYaml = cm.getValue(); - this.isEditorDirty = true; + if (this.formValues.DataYaml !== cm.getValue()) { + this.formValues.DataYaml = cm.getValue(); + this.isEditorDirty = true; + } } editorUpdate(cm) {