@@ -74,6 +74,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
74
74
75
75
if (
76
76
! this . props . manuallySaveThumbnails &&
77
+ this . props . onUpdateProjectThumbnail &&
77
78
this . props . saveThumbnailOnLoad &&
78
79
this . props . isShowingWithId &&
79
80
! prevProps . isShowingWithId
@@ -268,9 +269,10 @@ const ProjectSaverHOC = function (WrappedComponent) {
268
269
. then ( response => {
269
270
this . props . onSetProjectUnchanged ( ) ;
270
271
const id = response . id . toString ( ) ;
271
- if ( ( ! this . props . manuallySaveThumbnails && id && this . props . onUpdateProjectThumbnail ) ||
272
+ if ( this . props . onUpdateProjectThumbnail && id && (
273
+ ! this . props . manuallySaveThumbnails ||
272
274
// Always save thumbnail on project creation
273
- options ?. isCreatingProject ) {
275
+ options ?. isCreatingProject ) ) {
274
276
storeProjectThumbnail ( this . props . vm , dataURI => {
275
277
this . props . onUpdateProjectThumbnail (
276
278
id ,
@@ -430,6 +432,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
430
432
isManualUpdating : getIsManualUpdating ( loadingState ) ,
431
433
loadingState : loadingState ,
432
434
locale : state . locales . locale ,
435
+ manuallySaveThumbnails : ownProps . manuallySaveThumbnails ?? false ,
433
436
onUpdateProjectThumbnail :
434
437
ownProps . onUpdateProjectThumbnail ??
435
438
storage . saveProjectThumbnail ?. bind ( storage ) ,
0 commit comments