Frontend update
This commit is contained in:
@@ -10,15 +10,15 @@ $(document).ready(function () {
|
||||
// Populate select with options from the database
|
||||
axios.get('/Backend/Controllers/GameJam/GetGameJam.php')
|
||||
.then(function(res) {
|
||||
let resArr = res.data;
|
||||
let resArr = res.data.data;
|
||||
|
||||
//console.log(res.data.data);
|
||||
// console.log(resArr);
|
||||
|
||||
for(let i = 0; i < res.data.data.length; i++)
|
||||
for(let i = 0; i < resArr.length; i++)
|
||||
{
|
||||
arr.push({
|
||||
id: res.data.data[i].id,
|
||||
Gamejam: res.data.data[i].name
|
||||
id: resArr[i].id,
|
||||
Gamejam: resArr[i].name
|
||||
});
|
||||
}
|
||||
|
||||
@@ -211,7 +211,6 @@ $(document).ready(function () {
|
||||
|
||||
formData.append(id, value);
|
||||
|
||||
|
||||
axios.post(URL, formData, {
|
||||
header: 'multipart/form-data'
|
||||
}).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user