FIX: missing default params group reports (#50)

FIX: missing default params group reports (#50)

diff --git a/assets/javascripts/discourse/routes/group-reports-show.js.es6 b/assets/javascripts/discourse/routes/group-reports-show.js.es6
index 158e289..9062e94 100644
--- a/assets/javascripts/discourse/routes/group-reports-show.js.es6
+++ b/assets/javascripts/discourse/routes/group-reports-show.js.es6
@@ -8,8 +8,14 @@ export default DiscourseRoute.extend({
     const group = this.modelFor("group");
     return ajax(`/g/${group.name}/reports/${params.query_id}`)
       .then(response => {
+        const queryParamInfo = response.query.param_info;
+        const queryParams = queryParamInfo.reduce((acc, param) => {
+          acc[param.identifier] = param.default;
+          return acc;
+        }, {});
+
         return {
-          model: Object.assign({ params: {} }, response.query),
+          model: Object.assign({ params: queryParams }, response.query),
           group
         };
       })
diff --git a/assets/javascripts/discourse/templates/group-reports-index.hbs b/assets/javascripts/discourse/templates/group-reports-index.hbs
index 17c55a5..db20bf7 100644
--- a/assets/javascripts/discourse/templates/group-reports-index.hbs
+++ b/assets/javascripts/discourse/templates/group-reports-index.hbs
@@ -19,7 +19,11 @@
             {{#link-to 'group.reports.show' group.name query.id}}{{query.name}}{{/link-to}}
           </td>
           <td>{{query.description}}</td>
-          <td>{{bound-date query.last_run_at}}</td>
+          <td>
+            {{#if query.last_run_at}}
+              {{bound-date query.last_run_at}}
+            {{/if}}
+          </td>
         </tr>
       {{/each}}
     </tbody>

GitHub sha: f0442224

This commit appears in #50 which was approved by eviltrout. It was merged by tshenry.