diff --git a/rd_ui/app/scripts/controllers/query_view.js b/rd_ui/app/scripts/controllers/query_view.js index bc137a9970..75bce42f9e 100644 --- a/rd_ui/app/scripts/controllers/query_view.js +++ b/rd_ui/app/scripts/controllers/query_view.js @@ -129,10 +129,7 @@ } data.id = $scope.query.id; } else { - data = _.pick($scope.query, ["schedule", "query", "id", "description", "name", "data_source_id", "options"]); - if ($scope.query.isNew()) { - 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({}, {