|
|
|
@@ -51,7 +51,6 @@ const FilesPage = ({ history }) => { |
|
|
|
}, [id]); |
|
|
|
|
|
|
|
const onNullCategories = () => { |
|
|
|
console.log("JJJJSSSSSSJ") |
|
|
|
history.push(FILES_PAGE); |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -71,7 +70,11 @@ const FilesPage = ({ history }) => { |
|
|
|
|
|
|
|
const onSuccessCreatingCategoryHandler = () => { |
|
|
|
dispatch( |
|
|
|
setCategoriesReq(id === undefined ? undefined : { parentCategoryId: id }) |
|
|
|
setCategoriesReq( |
|
|
|
id === undefined |
|
|
|
? { parentCategoryId: undefined, onNull: onNullCategories } |
|
|
|
: { parentCategoryId: id, onNull: onNullCategories } |
|
|
|
) |
|
|
|
); |
|
|
|
setOpenCreateCategoryModal(false); |
|
|
|
}; |
|
|
|
@@ -100,7 +103,7 @@ const FilesPage = ({ history }) => { |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<div className="l-t-rectangle"></div> |
|
|
|
<div className="r-b-rectangle"></div> |
|
|
|
<div className="r-b-rectangle" style={{width:matches ? 100 : 180}}></div> |
|
|
|
<CustomModal |
|
|
|
classes="files-custom-modal" |
|
|
|
open={openCreateCategoryModal} |