Update DRP Pengadaan dan bug select box, authentication with menus
This commit is contained in:
@@ -121,21 +121,12 @@ const instansiOptions = new CustomStore({
|
||||
data: response.data
|
||||
};
|
||||
})
|
||||
// .then(data => {
|
||||
// console.log(JSON.parse(data));
|
||||
// })
|
||||
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
|
||||
},
|
||||
|
||||
byKey: (key) => {
|
||||
return fetch(URL_instansi+'/' + key)
|
||||
.then((response) => response.json())
|
||||
.then(response => {
|
||||
console.log(response.instansi);
|
||||
return {
|
||||
data: response.instansi
|
||||
};
|
||||
})
|
||||
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
|
||||
}
|
||||
});
|
||||
@@ -152,21 +143,12 @@ const bidangOptions = new CustomStore({
|
||||
data: response.data
|
||||
};
|
||||
})
|
||||
// .then(data => {
|
||||
// console.log(JSON.parse(data));
|
||||
// })
|
||||
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
|
||||
},
|
||||
|
||||
byKey: (key) => {
|
||||
return fetch(URL_bidang+'/' + key)
|
||||
.then((response) => response.json())
|
||||
.then(response => {
|
||||
console.log(response.bidang);
|
||||
return {
|
||||
data: response.bidang
|
||||
};
|
||||
})
|
||||
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user