- Fixed some api calls

This commit is contained in:
Alexis
2020-07-02 23:06:21 +02:00
parent 0101fb8a84
commit 939e384722
2 changed files with 6 additions and 6 deletions

View File

@@ -103,9 +103,9 @@ export default {
},
created() {
// Gets all relevant info for multiple selects
let fetchSchools = Schools.getSchools()
let fetchVariables = Variables.getVariables()
let fetchIngredients = Ingredients.getIngredients()
let fetchSchools = Schools.getAll()
let fetchVariables = Variables.getAll()
let fetchIngredients = Ingredients.getAll()
Promise.all([fetchSchools, fetchVariables, fetchIngredients])
.then(v => {

View File

@@ -132,9 +132,9 @@ export default {
},
created() {
// Gets all relevant info for multiple selects
let fetchSchools = Schools.getSchools()
let fetchVariables = Variables.getVariables()
let fetchIngredients = Ingredients.getIngredients()
let fetchSchools = Schools.getAll()
let fetchVariables = Variables.getAll()
let fetchIngredients = Ingredients.getAll()
Promise.all([fetchSchools, fetchVariables, fetchIngredients])
.then(v => {