파일 에러 해결
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user