fix: Correct API call signature for creating floors
This commit is contained in:
parent
d05fcf6b74
commit
a4a7626637
1 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,8 @@ export function AddFloorModal({ isOpen, onClose, buildingId, onCreated }: AddFlo
|
||||||
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const floor = await layoutApi.createFloor(buildingId, {
|
const floor = await layoutApi.createFloor({
|
||||||
|
buildingId,
|
||||||
name: formData.name.trim(),
|
name: formData.name.trim(),
|
||||||
number: formData.number,
|
number: formData.number,
|
||||||
width: formData.width,
|
width: formData.width,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue