파일 에러 해결

This commit is contained in:
dohyeons
2025-10-20 10:34:20 +09:00
parent f1f282bb34
commit 755da0d1bf
2 changed files with 14 additions and 12 deletions

View File

@@ -15,6 +15,7 @@ interface YardLayout {
name: string;
description: string;
placement_count: number;
created_at: string;
updated_at: string;
}
@@ -41,7 +42,7 @@ export default function YardManagement3DWidget({
setIsLoading(true);
const response = await yardLayoutApi.getAllLayouts();
if (response.success) {
setLayouts(response.data);
setLayouts(response.data as YardLayout[]);
}
} catch (error) {
console.error("야드 레이아웃 목록 조회 실패:", error);
@@ -73,7 +74,7 @@ export default function YardManagement3DWidget({
if (response.success) {
await loadLayouts();
setIsCreateModalOpen(false);
setEditingLayout(response.data);
setEditingLayout(response.data as YardLayout);
}
} catch (error) {
console.error("야드 레이아웃 생성 실패:", error);