upd: add additional checks
This commit is contained in:
parent
b43402519f
commit
d49099baeb
2 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ if (noteViewInterruptors.length > 0) {
|
|||
}
|
||||
|
||||
const replaceContent = () => {
|
||||
note.text = props.oldText;
|
||||
props.oldText ? note.text = props.oldText : undefined;
|
||||
note.createdAt = props.updatedAt;
|
||||
};
|
||||
replaceContent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue