Merge branch 'master' of http://114.203.209.83:3000/SamProject/sam-react-prod
This commit is contained in:
@@ -1161,7 +1161,10 @@ export async function getItemCategoryTree(): Promise<{
|
||||
}
|
||||
|
||||
if (!response || !response.ok) {
|
||||
return { success: false, data: [], error: '카테고리 조회 실패' };
|
||||
console.error('[getItemCategoryTree] response status:', response?.status, response?.statusText);
|
||||
const errorBody = response ? await response.text().catch(() => '') : '';
|
||||
console.error('[getItemCategoryTree] response body:', errorBody);
|
||||
return { success: false, data: [], error: `카테고리 조회 실패 (${response?.status || 'no response'})` };
|
||||
}
|
||||
|
||||
const result = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user