1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

refresh draft list

This commit is contained in:
ilearnit
2018-12-22 03:05:25 +00:00
parent 0984fdb7b3
commit 43bf633147

View File

@@ -12,6 +12,7 @@ const propTypes = {
updateDraftsList: PropTypes.func.isRequired,
isLoadingDraft: PropTypes.bool.isRequired,
draftList: PropTypes.arrayOf(PropTypes.object),
getDrafts: PropTypes.func.isRequired,
};
class DraftContent extends React.Component {
@@ -27,6 +28,7 @@ class DraftContent extends React.Component {
}
componentDidMount() {
this.props.getDrafts();
document.addEventListener('click', this.onHideContextMenu);
}