maj 3
This commit is contained in:
+2
-5
@@ -21,9 +21,6 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
import { fetchFormations } from './api.js'
|
||||
import { createFormation } from './formation.js'
|
||||
|
||||
export default {
|
||||
state: {
|
||||
loading: false,
|
||||
@@ -40,13 +37,13 @@
|
||||
})
|
||||
|
||||
try {
|
||||
const data = await fetchFormations(query)
|
||||
const data = await window.fetchFormations(query)
|
||||
const formations = []
|
||||
|
||||
if (data.results) {
|
||||
for (let i = 0; i < data.results.length; i++) {
|
||||
const raw = data.results[i]
|
||||
const formation = createFormation(raw)
|
||||
const formation = window.createFormation(raw)
|
||||
formations.push(formation)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user