mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: initial values numeric fields for account form
This commit is contained in:
@@ -68,7 +68,7 @@ function AccountFormDialogContent({
|
||||
.max(255)
|
||||
.label(formatMessage({ id: 'account_name_' })),
|
||||
code: Yup.string().digits().min(3).max(6),
|
||||
account_type_id: Yup.number()
|
||||
account_type_id: Yup.number().nullable()
|
||||
.required()
|
||||
.label(formatMessage({ id: 'account_type_id' })),
|
||||
description: Yup.string().min(3).max(512).nullable().trim(),
|
||||
@@ -76,7 +76,7 @@ function AccountFormDialogContent({
|
||||
});
|
||||
const initialValues = useMemo(
|
||||
() => ({
|
||||
account_type_id: null,
|
||||
account_type_id: '',
|
||||
name: '',
|
||||
code: '',
|
||||
description: '',
|
||||
|
||||
Reference in New Issue
Block a user