Merge pull request 'fix bug allbids histories' (#81) from main into staging
Reviewed-on: #81
This commit is contained in:
		
						commit
						66a42654cc
					
				| 
						 | 
				
			
			@ -72,14 +72,19 @@ export class AllbidsProductBid extends ProductBid {
 | 
			
		|||
        () => window.angular !== undefined
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
      const historiesData = await this.page_context.evaluate(() => {
 | 
			
		||||
      const historiesData = await this.page_context.evaluate((model) => {
 | 
			
		||||
        let data = null;
 | 
			
		||||
        const elements = document.querySelectorAll(".ng-scope");
 | 
			
		||||
 | 
			
		||||
        for (let i = 0; i < elements.length; i++) {
 | 
			
		||||
          try {
 | 
			
		||||
            const scope = angular.element(elements[i]).scope();
 | 
			
		||||
            if (scope?.bidHistory) {
 | 
			
		||||
            if (
 | 
			
		||||
              scope &&
 | 
			
		||||
              scope.auction &&
 | 
			
		||||
              scope?.auction.aucID === model &&
 | 
			
		||||
              scope?.bidHistory
 | 
			
		||||
            ) {
 | 
			
		||||
              data = scope.bidHistory;
 | 
			
		||||
              break;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			@ -96,7 +101,7 @@ export class AllbidsProductBid extends ProductBid {
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
        return data;
 | 
			
		||||
      });
 | 
			
		||||
      }, this.model);
 | 
			
		||||
 | 
			
		||||
      return historiesData;
 | 
			
		||||
    } catch (error) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue