- Fixed some api calls
This commit is contained in:
@@ -103,9 +103,9 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// Gets all relevant info for multiple selects
|
// Gets all relevant info for multiple selects
|
||||||
let fetchSchools = Schools.getSchools()
|
let fetchSchools = Schools.getAll()
|
||||||
let fetchVariables = Variables.getVariables()
|
let fetchVariables = Variables.getAll()
|
||||||
let fetchIngredients = Ingredients.getIngredients()
|
let fetchIngredients = Ingredients.getAll()
|
||||||
|
|
||||||
Promise.all([fetchSchools, fetchVariables, fetchIngredients])
|
Promise.all([fetchSchools, fetchVariables, fetchIngredients])
|
||||||
.then(v => {
|
.then(v => {
|
||||||
|
|||||||
@@ -132,9 +132,9 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// Gets all relevant info for multiple selects
|
// Gets all relevant info for multiple selects
|
||||||
let fetchSchools = Schools.getSchools()
|
let fetchSchools = Schools.getAll()
|
||||||
let fetchVariables = Variables.getVariables()
|
let fetchVariables = Variables.getAll()
|
||||||
let fetchIngredients = Ingredients.getIngredients()
|
let fetchIngredients = Ingredients.getAll()
|
||||||
|
|
||||||
Promise.all([fetchSchools, fetchVariables, fetchIngredients])
|
Promise.all([fetchSchools, fetchVariables, fetchIngredients])
|
||||||
.then(v => {
|
.then(v => {
|
||||||
|
|||||||
Reference in New Issue
Block a user