Browse Source

delete current drafts as well

mizozobu 7 years ago
parent
commit
83918102ac
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/client/js/components/MyDraftList/MyDraftList.jsx

+ 1 - 0
src/client/js/components/MyDraftList/MyDraftList.jsx

@@ -91,6 +91,7 @@ export default class MyDraftList extends React.Component {
     this.setState((prevState) => {
     this.setState((prevState) => {
       return {
       return {
         drafts: prevState.drafts.filter((draft) => { return draft.path !== path }),
         drafts: prevState.drafts.filter((draft) => { return draft.path !== path }),
+        currentDrafts: prevState.drafts.filter((draft) => { return draft.path !== path }),
       };
       };
     });
     });
   }
   }