Update AP posting form validation.

This commit is contained in:
Patrick Fic
2022-11-08 13:36:54 -08:00
parent 18f56a93d0
commit 818e0679d9

View File

@@ -140,7 +140,10 @@ export function DmsAllocationsSummaryAp({ socket, bodyshop, billids, title }) {
>
<Input />
</Form.Item>
<Button disabled={!socket.allocationsSummary} htmlType="submit">
<Button
disabled={!allocationsSummary || allocationsSummary.length === 0}
htmlType="submit"
>
{t("jobs.actions.dms.post")}
</Button>
</Form>