Resolve error thrown when entering payment from accounting menu.

This commit is contained in:
Patrick Fic
2023-05-26 14:57:04 -07:00
parent 094160ebf3
commit 6d2c3c81c7

View File

@@ -178,21 +178,24 @@ function PaymentModalContainer({
</span> </span>
} }
> >
<Space> {!context || (context && !context.id) ? null : (
<PaymentReexportButton payment={context} refetch={actions.refetch} /> <Space>
<PaymentMarkForExportButton <PaymentReexportButton payment={context} refetch={actions.refetch} />
bodyshop={bodyshop} <PaymentMarkForExportButton
payment={context} bodyshop={bodyshop}
refetch={actions.refetch} payment={context}
/> refetch={actions.refetch}
</Space> />
</Space>
)}
<Form <Form
onFinish={handleFinish} onFinish={handleFinish}
autoComplete={"off"} autoComplete={"off"}
form={form} form={form}
layout="vertical" layout="vertical"
initialValues={context || {}} initialValues={context || {}}
disabled={context.exportedat} disabled={context?.exportedat}
> >
<PaymentForm form={form} /> <PaymentForm form={form} />
</Form> </Form>