Skip to content

Commit

Permalink
[batch] Check that batch jobs is nonempty in Previous Page button (fr…
Browse files Browse the repository at this point in the history
…om upstream PR 14754; #352)

Cherry-picked as a batch UI hot fix.

Co-authored-by: Christopher Vittal <[email protected]>
  • Loading branch information
jmarshall and chrisvittal authored Nov 8, 2024
1 parent 16a39ae commit dcea9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batch/batch/front_end/templates/batch.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</div>

<div class='pt-2 flex w-full justify-end'>
{% if batch['jobs'][0]['job_id'] is not none and batch['jobs'][0]['job_id'] > 1 %}
{% if batch['jobs'] and batch['jobs'][0]['job_id'] is not none and batch['jobs'][0]['job_id'] > 1 %}
<form method="GET" action="{{ base_path }}/batches/{{ batch['id'] }}">
{% if q is not none %}
<input type="hidden" name="q" value="{{ q }}" />
Expand Down

0 comments on commit dcea9e9

Please sign in to comment.