From 359f0f7b01ec9dd3d6d4ee09ba8f980855a3e022 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Fri, 23 Jan 2026 11:10:08 +0700 Subject: [PATCH] refactor(FE): Move EKSPEDISI flag to supplier select --- .../pages/inventory/movement/form/MovementForm.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/pages/inventory/movement/form/MovementForm.tsx b/src/components/pages/inventory/movement/form/MovementForm.tsx index d36fb067..d4c0c838 100644 --- a/src/components/pages/inventory/movement/form/MovementForm.tsx +++ b/src/components/pages/inventory/movement/form/MovementForm.tsx @@ -95,9 +95,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => { isLoadingOptions: isLoadingWarehouses, loadMore: loadMoreWarehouses, rawData: warehouses, - } = useSelect(WarehouseApi.basePath, 'id', 'name', 'search', { - flag: 'EKSPEDISI', - }); + } = useSelect(WarehouseApi.basePath, 'id', 'name', 'search'); // ===== SELECT INPUT DATA ===== const { @@ -106,6 +104,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => { isLoadingOptions: isLoadingSuppliers, } = useSelect(SupplierApi.basePath, 'id', 'name', 'search', { category: 'BOP', + flag: 'EKSPEDISI', }); // ===== DATA PROCESSING =====