diff --git a/src/pages/master/walletRule/blocks/AddDialog.tsx b/src/pages/master/walletRule/blocks/AddDialog.tsx index 108901c..0e5ce46 100644 --- a/src/pages/master/walletRule/blocks/AddDialog.tsx +++ b/src/pages/master/walletRule/blocks/AddDialog.tsx @@ -87,7 +87,6 @@ const AddDialog = () => { status: '' }; const [formField, setFormField] = useState(initialState); - const [groups, setGroups] = useState([]); const [wallets, setWallets] = useState([]); const resetForm = () => { @@ -134,23 +133,6 @@ const AddDialog = () => { setAlert({ show: false, message: '' }); }; - const getGroupLists = async (sorting: any) => { - try { - const response = await GetData(`${API_URL_WALLET}/dashboard/group`, { - limit: 100, - page: 1, - with_deleted: false, - order_field: sorting[0].id, - order_direction: sorting[0].desc == false ? 'ASC' : 'DESC' - }); - - // console.log('GROUPS: ', response?.data); - setGroups(response?.data.list); - } catch (error) { - console.error('Error fetching groups', error); - } - }; - const getWalletLists = async (sorting: any) => { try { const response = await GetData(`${API_URL_MASTERDATA}/wallet/list`, { @@ -173,7 +155,6 @@ const AddDialog = () => { useEffect(() => { getWalletLists([{ id: 'wallets.name', desc: false }]); - getGroupLists([{ id: 'name', desc: false }]); }, []); useEffect(() => {