Skip to content

Commit

Permalink
fixed refresh getting mad on /add/ routes
Browse files Browse the repository at this point in the history
  • Loading branch information
John Mitchell committed Jan 13, 2016
1 parent c66c117 commit 3a1d49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/ui/client/src/helpers/refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 3a1d49d

Please sign in to comment.