From 2c2c227f0c9d5acb52945f299f67facfd1d1d2aa Mon Sep 17 00:00:00 2001 From: Matt Szczerba Date: Thu, 5 Sep 2024 10:36:16 -0400 Subject: [PATCH] Restore respect to the reset button --- src/components/metadata-editor.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/metadata-editor.vue b/src/components/metadata-editor.vue index 814799d4..5f5e2bb3 100644 --- a/src/components/metadata-editor.vue +++ b/src/components/metadata-editor.vue @@ -893,7 +893,7 @@ export default class MetadataEditorV extends Vue { // Update router path if (this.reloadExisting) { this.loadEditor = true; - this.generateConfig(); + this.unsavedChanges = false; this.updateEditorPath(); } else if (!this.loadExisting) { this.loadEditor = true; @@ -1288,7 +1288,6 @@ export default class MetadataEditorV extends Vue { // Re-fetch the product from the server. if (this.loadExisting) { this.reloadExisting = true; - this.loadExisting = false; this.generateRemoteConfig(); } else { this.reloadExisting = false;