Skip to content

Commit 4e6d641

Browse files
authored
simple-task-editor: Prevent adding empty task (#45)
1 parent 34d88bf commit 4e6d641

File tree

1 file changed

+2
-1
lines changed
  • packages/org.standardnotes.simple-task-editor/app/components

1 file changed

+2
-1
lines changed

packages/org.standardnotes.simple-task-editor/app/components/CreateTask.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default class CreateTask extends React.Component {
3232
handleKeyPress = (event) => {
3333
if (event.key === 'Enter') {
3434
var rawString = event.target.value;
35-
this.submitTask(rawString);
35+
if(rawString)
36+
this.submitTask(rawString);
3637
}
3738
}
3839

0 commit comments

Comments
 (0)