Skip to content

Commit

Permalink
Only try to render params if they are required.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jan 29, 2015
1 parent 813f0e7 commit 3dde578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rd_ui/app/scripts/services/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
return new QueryResult({job: {error: "Missing values for " + missingParams.join(', ') + " "+paramsWord+".", status: 4}});
}

if (parameters !== undefined) {
if (paramsRequired) {
queryText = Mustache.render(queryText, parameters);

// Need to clear latest results, to make sure we don't used results for different params.
Expand Down

0 comments on commit 3dde578

Please sign in to comment.