Skip to content

Commit 5c94739

Browse files
committed
Added error handler for callback
1 parent ad2b2e3 commit 5c94739

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/core/fm/content/item/index.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,13 @@ export default class Item extends Component {
109109

110110
//call the callback and send the result
111111
sendResult = result => {
112-
if (this.props.store.callback.call(this, result)) {
113-
this.props.store.closeFileManager();
112+
try {
113+
if (this.props.store.callback.call(this, result)) {
114+
this.props.store.closeFileManager();
115+
}
116+
}
117+
catch(e) {
118+
console.log(e);
114119
}
115120
};
116121

0 commit comments

Comments
 (0)