แก้ router ให้ไปดึงที่ registry ก่อน

This commit is contained in:
AnandaTon 2023-07-28 09:42:50 +07:00
parent 16490e4dce
commit eb5f4d35f6

View file

@ -1354,8 +1354,8 @@ const clickAdd = () => {
}; };
// //
const redirectToPage = (profileId?: string) => { const redirectToPage = (id?: string) => {
router.push(`/registryEmployee/edit/${profileId}`); router.push(`/registry/${id}`);
}; };
const editDetail = async (row: any) => { const editDetail = async (row: any) => {
await getPosition(row.id); await getPosition(row.id);