From 09e5075044cfef1fef88687636805f451f09f846 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期三, 10 四月 2024 16:23:39 +0800
Subject: [PATCH] 1

---
 force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index c726479..c7269e1 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1873,7 +1873,6 @@
             });
             addOptions({idList: idList}).then(result=>{
                 console.log('result');
-                console.log(result);
                 this.addOptionsLogic(result);
                 if(alertExp){
                     this.Alert(alertExp,'error');
@@ -1890,9 +1889,11 @@
         }
     }
     addOptionsLogic(result){
+        var e = new Map(result);
         this.jzDataToBeproduct.forEach(item=>{
-            if(result.get(item.pageObject.PricebookEntry.Product2Id)){
-                item.Learning_CommunityOptions = result.get(item.pageObject.PricebookEntry.Product2Id);
+            console.log(e);
+            if(e){
+                item.Learning_CommunityOptions = e.get(item.pageObject.PricebookEntry.Product2Id);
             }
         });
     }

--
Gitblit v1.9.1