minor fixes

This commit is contained in:
ammarahm-ed
2020-02-12 03:24:36 +05:00
parent 65d252e641
commit 377b192f8a
12 changed files with 59 additions and 37 deletions

View File

@@ -24,9 +24,8 @@ export class AddTopicDialog extends React.Component {
if (!this.title)
return ToastEvent.show('Title is required', 'error', 3000, () => {}, '');
await db.notebooks.notebook(this.props.notebookID).topics.add(this.title);
eSendEvent(eOnNewTopicAdded);
await db.notebooks.notebook(this.props.notebookID).topics.add(this.title),
eSendEvent(eOnNewTopicAdded);
ToastEvent.show('New topic added', 'success', 3000, () => {}, '');
this.close();
};