Reselect first item on sort change

This commit is contained in:
Mo Bitar
2018-01-20 18:55:33 -06:00
parent 85cdba7a9e
commit b152df2af4
9 changed files with 22 additions and 17 deletions

View File

@@ -316,7 +316,7 @@ angular.module('app')
}
this.getUserPrefValue = function(key, defaultValue) {
if(!this.userPreferences) { return; }
if(!this.userPreferences) { return defaultValue; }
var value = this.userPreferences.getAppDataItem(key);
return (value !== undefined && value != null) ? value : defaultValue;
}