Skip to content

Commit

Permalink
uhhh fix the crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub committed Feb 26, 2024
1 parent db92947 commit b33df83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/menu-bar/menu-bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,11 @@ class MenuBar extends React.Component {
>
{this.props.intl.formatMessage(sharedMessages.loadFromServer)}
</MenuItem>
<MenuItem
{/* <MenuItem
onClick={this.props.onStartSelectingFileUpload(true)}
>
{this.props.intl.formatMessage(sharedMessages.loadFromComputerTitle)}
</MenuItem>
</MenuItem> */}
<SB3Downloader>{(className, downloadProjectCallback) => (
<MenuItem
className={className}
Expand Down
5 changes: 3 additions & 2 deletions src/lib/sb-file-uploader-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ const SBFileUploaderHOC = function (WrappedComponent) {
// step 1: this is where the upload process begins
handleStartSelectingFileUpload (type) {
console.log("SELECT FILE UPLOAD!")
if (type) this.createLocalFileObjects();
else this.createFileObjects(); // go to step 2
// if (type) this.createLocalFileObjects();
// else this.createFileObjects(); // go to step 2
this.createFileObjects();
}

// step 2: create a FileReader and an <input> element, and issue a
Expand Down

0 comments on commit b33df83

Please sign in to comment.