fix
This commit is contained in:
parent
a3fa6cbb9c
commit
286e515288
|
|
@ -44,6 +44,7 @@ const ResourceCategoryPage: React.FC = () => {
|
|||
const handleCreateCategory = async () => {
|
||||
try {
|
||||
const response = await ResourceCategoryService.createCategory(formData)
|
||||
console.log(`handleCreateCategory`, response)
|
||||
if (response.status && response.data) {
|
||||
setCategories([...categories, response.data])
|
||||
setShowCreateForm(false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue