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,7 +123,6 @@ export const addEnqueueRequestedCanvasListener = (startAppListening: AppStartLis
const batchId = enqueueResult.batch.batch_id as string; // we know the is a string, backend provides it 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 // Prep the canvas staging area if it is not yet initialized
if (!state.canvas.layerState.stagingArea.boundingBox) {
dispatch( dispatch(
stagingAreaInitialized({ stagingAreaInitialized({
boundingBox: { boundingBox: {
@ -132,7 +131,6 @@ export const addEnqueueRequestedCanvasListener = (startAppListening: AppStartLis
}, },
}) })
); );
}
// Associate the session with the canvas session ID // Associate the session with the canvas session ID
dispatch(canvasBatchIdAdded(batchId)); dispatch(canvasBatchIdAdded(batchId));