fixed refresh getting mad on /add/ routes

This commit is contained in:
John Mitchell 2016-01-13 17:34:39 -05:00
parent c66c117e1f
commit 3a1d49d9d2

View File

@ -78,7 +78,7 @@ export default
.then(function (currentPage) {
scope.getPage(currentPage, set, iterator);
});
} else if ($location.$$url.split("/")[1] === params.set && $location.$$url.split("/")[2] && !scope.getNewPage) {
} else if ($location.$$url.split("/")[1] === params.set && $location.$$url.split("/")[2] && $location.$$url.split("/")[2] !== "add" && !scope.getNewPage) {
var id = $location.$$url.split("/")[2];
var restUrl = params.url.split("?")[0];
var pageSize = scope[iterator + '_page_size'];