fixed child add
このコミットが含まれているのは:
コミット
039bf94715
|
@ -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}`)
|
||||
|
|
新しいイシューから参照