wr: 하수재이용시설등록 후 목록 재조회

This commit is contained in:
2026-06-11 17:45:58 +09:00
parent 2c495ab8fd
commit 0131cae0d7
3 changed files with 10 additions and 0 deletions
@@ -462,6 +462,12 @@ export default function PublicReuseFaciltyInsert() {
void (async () => {
const message = await pbnstInsert(data);
alert(message);
if (searchTxt && searchTxt.trim().length > 0) {
await pubHasuSearch(pageNation, laeSeCd, searchTxt);
} else {
await pubHasuInit(pageNation, laeSeCd);
}
})();
setIsRuseReg({ isModal: false });
}
@@ -261,11 +261,14 @@ export const pubFacActionsExport: (set: any, get: any) => pubFacActions = (set:
const newPbnstRes = await initFetch(
pbnstRes.pbnstRuseFcltId.slice(0, 11)
);
const wrRegList = await getFetch("wr", `/reuseFc/pubFc`);
const fclts = Array.isArray(wrRegList) ? wrRegList : [];
set((state: pubFacState) => ({
...state,
pbnst: {
...state.pbnst,
pbnstRes: newPbnstRes,
fclts,
},
}));
return successMessage;
+1
View File
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.