js 의존성 제거

This commit is contained in:
Lectom C Han
2025-08-03 00:40:25 +09:00
parent 8db8ce668c
commit a53340e3c1
40 changed files with 96 additions and 48 deletions

View File

@@ -188,5 +188,11 @@ export const updateFeedback = async (
if (!response.ok) {
await handleApiError("피드백 수정에 실패했습니다.", response);
}
const contentLength = response.headers.get("Content-Length");
if (contentLength === "0" || !contentLength) {
return {} as Feedback; // 혹은 적절한 기본 객체
}
return response.json();
};