Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 009ea7c

Browse files
authored
Merge pull request #63 from rschick/callback
wrap onCreateFolder callback
2 parents eeb18e2 + ccda185 commit 009ea7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/browser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ class RawFileBrowser extends React.Component {
182182
activeAction: null,
183183
actionTarget: null,
184184
selection: key,
185-
}, this.props.onCreateFolder(key))
185+
}, () => {
186+
this.props.onCreateFolder(key)
187+
})
186188
}
187189

188190
moveFile = (oldKey, newKey) => {

0 commit comments

Comments
 (0)