ekokotov / object-table

Angular directive to easy create dynamic tables from source or URL with sorting, filtering and pagination. Smart templates and good perfomance
BSD 3-Clause "New" or "Revised" License
171 stars 52 forks source link

getting error `Uncaught TypeError: Cannot read property '$$hashKey' of undefined(…)` #44

Open GuyMograbi opened 8 years ago

GuyMograbi commented 8 years ago

I traced the source to be in objectTableCtrl

 $scope.ifSelected = function(item) {

      if (!!$scope.selectedModel && $scope.select === 'multiply') {
        return ctrl._containsInSelectArray(item);
      }else {
        return item.$$hashKey == $scope.selectedModel.$$hashKey;
      }
    };

I will have a PR soon