Skip to content

Commit

Permalink
Canvas: properly remove stale design space guideline (#13210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushnirwal authored Apr 25, 2023
1 parent be47067 commit b70cb16
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import SAT from 'sat';
/**
* Internal dependencies
*/
import { useStory, useCanvas } from '../../../app';
import { useStory, useCanvas, useTransform } from '../../../app';
import useElementPolygon from '../../../utils/useElementPolygon';

function useFullbleedMediaAsBackground() {
Expand All @@ -51,6 +51,9 @@ function useFullbleedMediaAsBackground() {
fullbleedContainer,
})
);
const { clearTransforms } = useTransform((state) => ({
clearTransforms: state.actions.clearTransforms,
}));
const { showSnackbar } = useSnackbar();
const getElementPolygon = useElementPolygon();

Expand Down Expand Up @@ -89,6 +92,7 @@ function useFullbleedMediaAsBackground() {
);
setIsBackgroundSnackbarMessageDismissed(true);
}
clearTransforms();
}
};

Expand Down

0 comments on commit b70cb16

Please sign in to comment.