fix: add missing hook dependency

This commit is contained in:
Arnošt Pleskot 2023-08-15 23:43:09 +02:00
parent 4c8cf9c91c
commit 1f62bd8c67
No known key found for this signature in database

View File

@ -149,7 +149,13 @@ const ImageExportModal = ({
} else {
setExportBaseScale(defaultExportScale);
}
}, [actionManager, exportedElements, previewRef]);
}, [
actionManager,
exportedElements,
previewRef,
exportWithBackground,
exportBackgroundImage,
]);
useEffect(() => {
const previewNode = previewRef.current;