Bug Fixing
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
Space,
|
||||
Table,
|
||||
List,
|
||||
Divider
|
||||
Divider,
|
||||
} from "antd";
|
||||
import { observer } from "mobx-react-lite";
|
||||
import { useHistory } from "react-router-dom";
|
||||
@@ -55,6 +55,8 @@ export const CategoryComponent = observer((props) => {
|
||||
},
|
||||
];
|
||||
|
||||
if (store.authentication.userData.role === "Customer Service") columns.pop();
|
||||
|
||||
const deleteData = async (id) => {
|
||||
try {
|
||||
console.log(id);
|
||||
|
||||
@@ -67,6 +67,8 @@ export const SubcategoryComponent = observer((props) => {
|
||||
},
|
||||
];
|
||||
|
||||
if (store.authentication.userData.role === "Customer Service") columns.pop();
|
||||
|
||||
const handleCancel = () => {
|
||||
setIdData("");
|
||||
store.subcategory.visibleModalSubcategory = false;
|
||||
|
||||
Reference in New Issue
Block a user