fixed child add

このコミットが含まれているのは:
dragon1211 2022-01-31 21:38:41 -08:00
コミット 039bf94715
3個のファイルの変更6行の追加19行の削除

ファイルの表示

@ -38410,7 +38410,11 @@ var ParentChildAdd = function ParentChildAdd() {
}
}
axios.get('/api/fathers/relations/check').then(function (response) {
axios.get('/api/fathers/relations/check', {
params: {
father_id: father_id
}
}).then(function (response) {
if (isMountedRef.current) return;
switch (response.data.status_code) {
@ -38682,16 +38686,6 @@ var ParentChildDetail = function ParentChildDetail() {
};
}, []); //-------------------------------------------------------------
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
var navbar_list = document.getElementsByClassName("mypage-nav-list__item");
for (var i = 0; i < navbar_list.length; i++) {
navbar_list[i].classList.remove('nav-active');
}
document.getElementsByClassName("-child")[0].classList.add('nav-active');
}, []); //---------------------------------------------------------------
var handleAcceptDelete = function handleAcceptDelete() {
setSubmit(true);
axios["delete"]("/api/fathers/relations/deleteRelationChild/".concat(child_id)).then(function (response) {

ファイルの表示

@ -148,7 +148,7 @@ const ParentChildAdd = () => {
}
}
axios.get('/api/fathers/relations/check')
axios.get('/api/fathers/relations/check', {params:{father_id: father_id}})
.then(response=>{
if(isMountedRef.current) return;

ファイルの表示

@ -58,14 +58,7 @@ const ParentChildDetail = () => {
},[]);
//-------------------------------------------------------------
useEffect(()=>{
var navbar_list = document.getElementsByClassName("mypage-nav-list__item");
for(let i=0; i<navbar_list.length; i++)
navbar_list[i].classList.remove('nav-active');
document.getElementsByClassName("-child")[0].classList.add('nav-active');
},[]);
//---------------------------------------------------------------
const handleAcceptDelete = () => {
setSubmit(true);
axios.delete(`/api/fathers/relations/deleteRelationChild/${child_id}`)