mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-20 21:49:32 +01:00
minor fixes
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user