From 9438ef1633462b9df205e9d619450601ff3642ab Mon Sep 17 00:00:00 2001 From: shashwatbangar Date: Mon, 2 Jan 2023 18:52:44 +0530 Subject: [PATCH 1/2] Fixed: The save mapping input value should be empty after save action(#85zrh7473) --- src/views/PurchaseOrder.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/PurchaseOrder.vue b/src/views/PurchaseOrder.vue index 032fccf6..6103fb8a 100644 --- a/src/views/PurchaseOrder.vue +++ b/src/views/PurchaseOrder.vue @@ -145,6 +145,7 @@ export default defineComponent({ showToast(translate("Map all fields")); return } + this.mappingName = ""; const mappingPrefId = this.generateUniqueMappingPrefId(); this.store.dispatch('user/updateFieldMappings', { mappingPrefId, mappingPrefName: this.mappingName, mappingPrefValue: JSON.parse(JSON.stringify(this.fieldMapping)) }) showToast(translate("Mapping saved successfully")); From a959bcde9c608a102a4264f184490169677b54a2 Mon Sep 17 00:00:00 2001 From: shashwatbangar Date: Wed, 4 Jan 2023 14:41:30 +0530 Subject: [PATCH 2/2] Fixed: Empty mapping name getting saved when saving mappings(#85zrh7473) --- src/views/PurchaseOrder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/PurchaseOrder.vue b/src/views/PurchaseOrder.vue index 6103fb8a..27e6e3ee 100644 --- a/src/views/PurchaseOrder.vue +++ b/src/views/PurchaseOrder.vue @@ -145,10 +145,10 @@ export default defineComponent({ showToast(translate("Map all fields")); return } - this.mappingName = ""; const mappingPrefId = this.generateUniqueMappingPrefId(); this.store.dispatch('user/updateFieldMappings', { mappingPrefId, mappingPrefName: this.mappingName, mappingPrefValue: JSON.parse(JSON.stringify(this.fieldMapping)) }) showToast(translate("Mapping saved successfully")); + this.mappingName = ""; }, getFile(event) { this.file = event.target.files[0];