KKbes
2023-08-07 cbb20845dfa7138819ba7ef1e95a56ce5bdcfcbc
force-app/main/default/lwc/lexCancelSubAuthorizedButton/lexCancelSubAuthorizedButton.js
@@ -73,16 +73,19 @@
         this.dispatchEvent(event3);
         return;
      }
      await updateStatuById().then(result=>{
         this.dispatchEvent(event2);
         location.href = this.SubAuthorized.Id;
      }).catch(error=>{
         const eventError = new ShowToastEvent({
      await updateStatuById({Id : this.recordId}).then(result=>{
         if(result!='success'){
            const eventError = new ShowToastEvent({
                  message:
                   error.message,
                   result,
                   variant : 'error'
         });
         this.dispatchEvent(eventError);
      })
            });
            this.dispatchEvent(eventError);
         }
         else{
            this.dispatchEvent(event2);
            location.href = this.SubAuthorized.Id;
         }
      });
    }
}