From 78838f2a175e264dec0db3509c7224d1fa9743d4 Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Wed, 1 Feb 2023 10:44:20 -0500 Subject: [PATCH] Async method for populating default job templates from the variable adapter --- ui/app/adapters/variable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/adapters/variable.js b/ui/app/adapters/variable.js index 2592626d65a..329fe71ed37 100644 --- a/ui/app/adapters/variable.js +++ b/ui/app/adapters/variable.js @@ -27,7 +27,7 @@ export default class VariableAdapter extends ApplicationAdapter { * @returns {Promise<{variables: Variable[], default: Variable[]}>} */ async getJobTemplates() { - this.populateDefaultJobTemplates(); + await this.populateDefaultJobTemplates(); const jobTemplateVariables = await this.store.query('variable', { prefix: 'nomad/job-templates', namespace: '*',