Skip to content

Commit

Permalink
Merge pull request #211 from EventStore/fixes
Browse files Browse the repository at this point in the history
Miscellaneous Fixes
  • Loading branch information
shaan1337 committed Jan 8, 2019
2 parents 6f239e9 + e6d2309 commit cee636b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .jshintrc
Expand Up @@ -9,7 +9,7 @@
"immed": true,
"latedef": "nofunc",
"plusplus": false,
"newcap": true,
"newcap": false,
"noarg": true,
"quotmark": "single",
"regexp": true,
Expand All @@ -22,6 +22,7 @@
"angular": false,
"define": false,
"alert": false,
"confirm": false
"confirm": false,
"self": false
}
}
Expand Up @@ -242,7 +242,7 @@ define(['./_module'], function (app) {

$scope.update = function () {
$scope.isUpdating = true;
projectionsService.updateQuery($scope.location, $scope.query)
projectionsService.updateQuery($scope.location, null, $scope.query)
.success(function () {
msg.info('Projection Updated');
$window.location.reload();
Expand Down
3 changes: 1 addition & 2 deletions src/js/modules/projections/services/ProjectionsService.js
Expand Up @@ -186,10 +186,9 @@ define(['./_module'], function (app) {
},
updateQuery: function (url, emit, source) {

if(source) {
if(emit) {
url = urlBuilder.simpleBuild(urls.projections.updateQuery, url) + emit;
} else {
source = emit;
url = urlBuilder.simpleBuild(urls.projections.updatePlainQuery, url);
}

Expand Down

0 comments on commit cee636b

Please sign in to comment.