diff --git a/apps/wr/.eslintrc.ts b/apps/wr/.eslintrc.ts new file mode 100644 index 000000000..9c0110d98 --- /dev/null +++ b/apps/wr/.eslintrc.ts @@ -0,0 +1,6 @@ +module.exports = { + parserOptions: { + tsconfigRootDir: __dirname, + project: "./tsconfig.eslint.json", + }, +}; \ No newline at end of file diff --git a/apps/wr/app/store/common/searchCode/index.ts b/apps/wr/app/store/common/searchCode/index.ts index b572307f5..f1c46820d 100644 --- a/apps/wr/app/store/common/searchCode/index.ts +++ b/apps/wr/app/store/common/searchCode/index.ts @@ -64,8 +64,8 @@ type comFcltActions = { updateDemandCompany: (data: DemandCompType) => Promise; getConstCostFee: (year: string) => void; getRateFee: (year: string) => void; - getConstCostFeeRtn: (year: string) => conCostFeeType[]; - getRateFeeRtn: (year: string) => rateFeeType[]; + getRateFeeRtn: (year: string) => Promise; + getConstCostFeeRtn: (year: string) => Promise; }; export const comFcltSearchAction: (set: any) => comFcltActions = (set: any) => { @@ -180,6 +180,7 @@ export const comFcltSearchAction: (set: any) => comFcltActions = (set: any) => { return rateFeeRes; } catch (e) { console.log(" error ", e); + return []; } }, // 공사금액 (공사비 산정표) 조회 : ONSEMIRO_NEW.EM_STD_COST_REUSE 설치관리표준사업비 재이용시설 공사비 @@ -196,20 +197,21 @@ export const comFcltSearchAction: (set: any) => comFcltActions = (set: any) => { }); } catch (e) { - console.log('getConstCostFee ', e) + console.log('getConstCostFee ', e); + } }, // 공사금액 (공사비 산정표) 조회 : ONSEMIRO_NEW.EM_STD_COST_REUSE 설치관리표준사업비 재이용시설 공사비 - getConstCostFeeRtn: async (year: string) => { + getConstCostFeeRtn: async (year: string): Promise => { try { const url = `/prcsFclt/CstRuse/${year}`; const constCost = await getFetch(fetchType.COMMON, url); return constCost; } catch (e) { - console.log('getConstCostFee ', e) + console.log('getConstCostFee ', e); + return []; } - } }; }; diff --git a/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx b/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx index 85b2cfaf1..09ed01987 100644 --- a/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx +++ b/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx @@ -432,7 +432,8 @@ export default function ConCostForm({ selectClass="rounded-md" selectArray={code.sewageOutFclttUse || []} onSelectValue={field.onChange} - value={field.value} + value={field.value ?? ""} + className="" /> ) : (