Bug Fixing

This commit is contained in:
2022-02-03 16:39:05 +07:00
parent c63c1b961d
commit 32f33e6102
6 changed files with 74 additions and 18 deletions

View File

@@ -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);

View File

@@ -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;