Skip to content

Commit bf42a35

Browse files
committed
fix: curry getProjectThumbnail
1 parent 2f67379 commit bf42a35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/scratch-gui/src/components/stage-header/stage-header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const messages = defineMessages({
4545
},
4646
setThumbnail: {
4747
defaultMessage: 'Set Thumbnail',
48-
description: 'Manually save project thumbnail ',
48+
description: 'Manually save project thumbnail',
4949
id: 'gui.stageHeader.saveThumbnail'
5050
},
5151
fullscreenControl: {

packages/scratch-gui/src/lib/project-saver-hoc.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
6161
// Allow the GUI consumer to pass in a function to receive a trigger
6262
// for triggering thumbnail or whole project saves.
6363
// These functions are called with null on unmount to prevent stale references.
64-
this.props.onSetProjectThumbnailer(getProjectThumbnail);
64+
this.props.onSetProjectThumbnailer((callback) => getProjectThumbnail(this.props.vm, callback));
6565
this.props.onSetProjectSaver(this.tryToAutoSave);
6666
}
6767
componentDidUpdate (prevProps) {

0 commit comments

Comments
 (0)