fix(frontend): Update LayoutCanvas and layoutApi types
This commit is contained in:
parent
c962118ba6
commit
2acef3c63c
2 changed files with 2 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ export function LayoutCanvas() {
|
|||
const position = targetSection.positions?.find(p => p.row === row && p.column === col);
|
||||
|
||||
if (position && (position.status === 'EMPTY' || position.status === 'RESERVED')) {
|
||||
await layoutApi.placeBatchInPosition(position.id, batchId);
|
||||
await layoutApi.occupyPosition(position.id, { batchId });
|
||||
addToast(`Placed ${batchName} at R${row}C${col}`, 'success');
|
||||
} else if (position?.status === 'PLANTED') {
|
||||
addToast('Slot already occupied', 'warning');
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ export interface Position3D {
|
|||
status: string;
|
||||
batchId: string | null;
|
||||
batchName: string | null;
|
||||
plantTypeId: string | null;
|
||||
strain: string | null;
|
||||
stage: string | null;
|
||||
} | null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue