mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 05:22:02 +00:00
formatting
This commit is contained in:
@@ -990,7 +990,9 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
const items: Array<ProductWarehouse | null | undefined> = [];
|
||||
|
||||
if (isResponseSuccess(stockProducts)) {
|
||||
items.push(...((stockProducts.data as unknown as ProductWarehouse[]) ?? []));
|
||||
items.push(
|
||||
...((stockProducts.data as unknown as ProductWarehouse[]) ?? [])
|
||||
);
|
||||
}
|
||||
|
||||
if (isResponseSuccess(depletionProductsData)) {
|
||||
@@ -1000,11 +1002,15 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
}
|
||||
|
||||
if (isResponseSuccess(eggProductsData)) {
|
||||
items.push(...((eggProductsData.data as unknown as ProductWarehouse[]) ?? []));
|
||||
items.push(
|
||||
...((eggProductsData.data as unknown as ProductWarehouse[]) ?? [])
|
||||
);
|
||||
}
|
||||
|
||||
initialValues?.stocks?.forEach((stock) => {
|
||||
items.push((stock.product_warehouse as ProductWarehouse | undefined) ?? null);
|
||||
items.push(
|
||||
(stock.product_warehouse as ProductWarehouse | undefined) ?? null
|
||||
);
|
||||
});
|
||||
initialValues?.depletions?.forEach((depletion) => {
|
||||
items.push(
|
||||
@@ -1012,7 +1018,9 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
);
|
||||
});
|
||||
initialValues?.eggs?.forEach((egg) => {
|
||||
items.push((egg.product_warehouse as ProductWarehouse | undefined) ?? null);
|
||||
items.push(
|
||||
(egg.product_warehouse as ProductWarehouse | undefined) ?? null
|
||||
);
|
||||
});
|
||||
|
||||
mergeKnownProductWarehouses(items);
|
||||
|
||||
Reference in New Issue
Block a user