Skip to content

Commit

Permalink
Async method for populating default job templates from the variable a…
Browse files Browse the repository at this point in the history
…dapter
  • Loading branch information
philrenaud committed Feb 1, 2023
1 parent 26b02db commit 78838f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/adapters/variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '*',
Expand Down

0 comments on commit 78838f2

Please sign in to comment.