Revert "always enqueue with fresh bounding box"

This reverts commit fae51da278b39c61cbbea5de88661b4bc546f1ce.
This commit is contained in:
psychedelicious 2024-04-10 09:45:00 +10:00
parent 98bfbb73ac
commit c0d54d5414

View File

@ -123,6 +123,7 @@ 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: {
@ -131,6 +132,7 @@ 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));