diff --git a/client/modules/IDE/hooks/useSketchActions.js b/client/modules/IDE/hooks/useSketchActions.js index a4c5d70235..dc8a9970cc 100644 --- a/client/modules/IDE/hooks/useSketchActions.js +++ b/client/modules/IDE/hooks/useSketchActions.js @@ -40,9 +40,9 @@ const useSketchActions = () => { } } - function downloadSketch() { + async function downloadSketch() { if (authenticated && user.id === project.owner.id) { - dispatch(autosaveProject()); + await dispatch(autosaveProject()); exportProjectAsZip(project.id); } }