fix(account-form): BIG-401 Edit account form initial values do not fill up automatically.

This commit is contained in:
a.bouhuolia
2023-01-26 22:11:26 +02:00
parent 21199c45fa
commit dc99b1f128
7 changed files with 34 additions and 16 deletions

View File

@@ -24,8 +24,11 @@ import {
} from '@/components';
import { AccountAction, AbilitySubject } from '@/constants/abilityOption';
import { DialogsName } from '@/constants/dialogs';
import { useRefreshAccounts } from '@/hooks/query/accounts';
import { useAccountsChartContext } from './AccountsChartProvider';
import withAccounts from './withAccounts';
import withAccountsTableActions from './withAccountsTableActions';
import withDialogActions from '@/containers/Dialog/withDialogActions';
@@ -65,7 +68,7 @@ function AccountsActionsBar({
const { resourceViews, fields } = useAccountsChartContext();
const onClickNewAccount = () => {
openDialog('account-form', {});
openDialog(DialogsName.AccountForm, {});
};
// Accounts refresh action.