Deep clone the PortalJobsList so that we don't modify the base config

This commit is contained in:
Michael Abashian 2016-07-11 13:34:20 -04:00
parent 62351f18ce
commit 3f19f3c6d2

View File

@ -7,7 +7,7 @@
export function PortalModeJobsController($scope, $rootScope, GetBasePath, GenerateList, PortalJobsList, SearchInit,
PaginateInit){
var list = PortalJobsList,
var list = _.cloneDeep(PortalJobsList),
view = GenerateList,
// show user jobs by default
defaultUrl = GetBasePath('jobs') + '?created_by=' + $rootScope.current_user.id,