Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private createNotepad = async () => {
const title = await Dialog.prompt('Notebook/Notepad Title:');
let notepad = new FlatNotepad(title);
let section = FlatNotepad.makeFlatSection('Unorganised Notes');
let note = new Note('Untitled Note').clone({ parent: section.internalRef });
notepad = notepad.addSection(section).addNote(note);
if (title) this.props.newNotepad!(notepad);
}
}