Merge branch 'dev' into dev-yj

This commit is contained in:
lelalela 2025-01-10 11:21:59 +09:00
commit 430449533b
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export default function CanvasLayout({ children }) {
const { getMessage } = useMessage() const { getMessage } = useMessage()
const { swalFire } = useSwal() const { swalFire } = useSwal()
const { plans, loadCanvasPlanData, handleCurrentPlan, handleAddPlan, handleDeletePlan } = usePlan({ objectNo }) const { plans, loadCanvasPlanData, handleCurrentPlan, handleAddPlan, handleDeletePlan } = usePlan()
useEffect(() => { useEffect(() => {
loadCanvasPlanData(session.userId, objectNo, pid) loadCanvasPlanData(session.userId, objectNo, pid)

View File

@ -16,7 +16,6 @@ import { readImage, removeImage } from '@/lib/fileAction'
import { FloorPlanContext } from '@/app/floor-plan/FloorPlanProvider' import { FloorPlanContext } from '@/app/floor-plan/FloorPlanProvider'
export function usePlan(params = {}) { export function usePlan(params = {}) {
const pObjectNo = params.objectNo
const { floorPlanState } = useContext(FloorPlanContext) const { floorPlanState } = useContext(FloorPlanContext)
const [planNum, setPlanNum] = useState(0) const [planNum, setPlanNum] = useState(0)