js 의존성 제거
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user