Skip to content

Commit

Permalink
Simplify the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr authored Jul 28, 2016
1 parent 1995fe4 commit 295ca92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rd_ui/app/scripts/controllers/query_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@
}
data.id = $scope.query.id;
} else {
data = _.pick($scope.query, ["schedule", "query", "id", "description", "name", "data_source_id", "options"]);
data['latest_query_data_id'] = $scope.query.latest_query_data_id;
data = _.pick($scope.query, ["schedule", "query", "id", "description", "name", "data_source_id", "options", "latest_query_data_id"]);
}

options = _.extend({}, {
Expand Down

0 comments on commit 295ca92

Please sign in to comment.