@@ -74,6 +74,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
7474
7575 if (
7676 ! this . props . manuallySaveThumbnails &&
77+ this . props . onUpdateProjectThumbnail &&
7778 this . props . saveThumbnailOnLoad &&
7879 this . props . isShowingWithId &&
7980 ! prevProps . isShowingWithId
@@ -268,9 +269,10 @@ const ProjectSaverHOC = function (WrappedComponent) {
268269 . then ( response => {
269270 this . props . onSetProjectUnchanged ( ) ;
270271 const id = response . id . toString ( ) ;
271- if ( ( ! this . props . manuallySaveThumbnails && id && this . props . onUpdateProjectThumbnail ) ||
272+ if ( this . props . onUpdateProjectThumbnail && id && (
273+ ! this . props . manuallySaveThumbnails ||
272274 // Always save thumbnail on project creation
273- options ?. isCreatingProject ) {
275+ options ?. isCreatingProject ) ) {
274276 storeProjectThumbnail ( this . props . vm , dataURI => {
275277 this . props . onUpdateProjectThumbnail (
276278 id ,
@@ -430,6 +432,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
430432 isManualUpdating : getIsManualUpdating ( loadingState ) ,
431433 loadingState : loadingState ,
432434 locale : state . locales . locale ,
435+ manuallySaveThumbnails : ownProps . manuallySaveThumbnails ?? false ,
433436 onUpdateProjectThumbnail :
434437 ownProps . onUpdateProjectThumbnail ??
435438 storage . saveProjectThumbnail ?. bind ( storage ) ,
0 commit comments