mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: prettier format
This commit is contained in:
@@ -127,23 +127,37 @@ const ReportExpenseTab = ({ tabId }: ReportExpenseTabProps) => {
|
||||
|
||||
handleFilterModalOpenRef.current = () => {
|
||||
const restoredLocation = filterParams.location_id
|
||||
? locationOptions.find((opt) => String(opt.value) === filterParams.location_id) ||
|
||||
{ value: filterParams.location_id, label: filterParams.location_id }
|
||||
? locationOptions.find(
|
||||
(opt) => String(opt.value) === filterParams.location_id
|
||||
) || {
|
||||
value: filterParams.location_id,
|
||||
label: filterParams.location_id,
|
||||
}
|
||||
: null;
|
||||
const restoredSupplier = filterParams.supplier_id
|
||||
? supplierOptions.find((opt) => String(opt.value) === filterParams.supplier_id) ||
|
||||
{ value: filterParams.supplier_id, label: filterParams.supplier_id }
|
||||
? supplierOptions.find(
|
||||
(opt) => String(opt.value) === filterParams.supplier_id
|
||||
) || {
|
||||
value: filterParams.supplier_id,
|
||||
label: filterParams.supplier_id,
|
||||
}
|
||||
: null;
|
||||
const restoredKandang = filterParams.kandang_id
|
||||
? projectFlockKandangOptions.find((opt) => String(opt.value) === filterParams.kandang_id) ||
|
||||
{ value: filterParams.kandang_id, label: filterParams.kandang_id }
|
||||
? projectFlockKandangOptions.find(
|
||||
(opt) => String(opt.value) === filterParams.kandang_id
|
||||
) || { value: filterParams.kandang_id, label: filterParams.kandang_id }
|
||||
: null;
|
||||
const restoredNonstock = filterParams.nonstock_id
|
||||
? nonstockOptions.find((opt) => String(opt.value) === filterParams.nonstock_id) ||
|
||||
{ value: filterParams.nonstock_id, label: filterParams.nonstock_id }
|
||||
? nonstockOptions.find(
|
||||
(opt) => String(opt.value) === filterParams.nonstock_id
|
||||
) || {
|
||||
value: filterParams.nonstock_id,
|
||||
label: filterParams.nonstock_id,
|
||||
}
|
||||
: null;
|
||||
const restoredCategory = filterParams.category
|
||||
? categoryOptions.find((opt) => opt.value === filterParams.category) || null
|
||||
? categoryOptions.find((opt) => opt.value === filterParams.category) ||
|
||||
null
|
||||
: null;
|
||||
|
||||
formik.setValues({
|
||||
|
||||
Reference in New Issue
Block a user