diff --git a/ui/app/routes/jobs/job/index.js b/ui/app/routes/jobs/job/index.js index 6f0b17858..570b6fb3c 100644 --- a/ui/app/routes/jobs/job/index.js +++ b/ui/app/routes/jobs/job/index.js @@ -5,11 +5,14 @@ import WithWatchers from 'nomad-ui/mixins/with-watchers'; export default Route.extend(WithWatchers, { startWatchers(controller, model) { + if (!model) { + return; + } controller.set('watchers', { model: this.get('watch').perform(model), summary: this.get('watchSummary').perform(model), evaluations: this.get('watchEvaluations').perform(model), - deployments: this.get('watchDeployments').perform(model), + deployments: model.get('supportsDeployments') && this.get('watchDeployments').perform(model), }); },