diff --git a/.changelog/19505.txt b/.changelog/19505.txt new file mode 100644 index 00000000000..78b95368759 --- /dev/null +++ b/.changelog/19505.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix rendering of allocations table for jobs that don't have actions +``` diff --git a/ui/app/templates/components/allocation-row.hbs b/ui/app/templates/components/allocation-row.hbs index a1d62ebd8fb..de925249d6b 100644 --- a/ui/app/templates/components/allocation-row.hbs +++ b/ui/app/templates/components/allocation-row.hbs @@ -137,4 +137,6 @@ @error={{this.statsError}} /> - +{{#if this.model.job.actions.length}} + +{{/if}} diff --git a/ui/app/templates/components/job-deployment/deployment-allocations.hbs b/ui/app/templates/components/job-deployment/deployment-allocations.hbs index 88f1396b9ec..f2161726452 100644 --- a/ui/app/templates/components/job-deployment/deployment-allocations.hbs +++ b/ui/app/templates/components/job-deployment/deployment-allocations.hbs @@ -7,7 +7,7 @@
Allocations
-
+
{{#if @deployment.allocations.length}}