FIX: Render creation date instead of run date if query was never run

This commit is contained in:
Rishabh Nambiar 2018-08-28 12:14:43 +05:30
parent 1fc73a211a
commit 6a57f6536d
1 changed files with 11 additions and 1 deletions

View File

@ -167,7 +167,17 @@
</a>
{{/if}}
</td>
<td class="query-created-at"><medium>{{bound-date query.last_run_at}}</medium></td>
<td class="query-created-at">
{{#if query.last_run_at}}
<medium>
{{bound-date query.last_run_at}}
</medium>
{{else}}
<medium>
{{bound-date query.created_at}}
</medium>
{{/if}}
</td>
</tr>
{{/each}}
</table>