always enqueue with fresh bounding box

This commit is contained in:
Mary Hipp 2024-04-09 12:06:14 -04:00 committed by psychedelicious
parent f9af32a6d1
commit 98bfbb73ac

View File

@ -123,16 +123,14 @@ export const addEnqueueRequestedCanvasListener = (startAppListening: AppStartLis
const batchId = enqueueResult.batch.batch_id as string; // we know the is a string, backend provides it
// Prep the canvas staging area if it is not yet initialized
if (!state.canvas.layerState.stagingArea.boundingBox) {
dispatch(
stagingAreaInitialized({
boundingBox: {
...state.canvas.boundingBoxCoordinates,
...state.canvas.boundingBoxDimensions,
},
})
);
}
dispatch(
stagingAreaInitialized({
boundingBox: {
...state.canvas.boundingBoxCoordinates,
...state.canvas.boundingBoxDimensions,
},
})
);
// Associate the session with the canvas session ID
dispatch(canvasBatchIdAdded(batchId));