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

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

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 0fe93c9..654966a 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1872,7 +1872,7 @@
                 idList.push(item.pageObject.PricebookEntry.Product2Id);
             });
             addOptions({idList: idList}).then(result=>{
-                console.log('result' + result);
+                console.log('result');
                 this.addOptionsLogic(result);
                 if(alertExp){
                     this.Alert(alertExp,'error');
@@ -1890,7 +1890,8 @@
     }
     addOptionsLogic(result){
         this.jzDataToBeproduct.forEach(item=>{
-            if(result.get(item.pageObject.PricebookEntry.Product2Id)){
+            console.log(result);
+            if(result){
                 item.Learning_CommunityOptions = result.get(item.pageObject.PricebookEntry.Product2Id);
             }
         });

--
Gitblit v1.9.1