Skip to content

Commit

Permalink
Merge pull request #383 from penge/fix
Browse files Browse the repository at this point in the history
Fix renaming and deleting
  • Loading branch information
penge authored Jun 15, 2022
2 parents 0bbb16b + cf06ce9 commit df041a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "My Notes",
"description": "Simple and fast note-taking.",
"version": "3.22",
"version": "3.22.1",
"homepage_url": "https://github.com/penge/my-notes",
"icons": {
"128": "images/icon128.png"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "my-notes",
"version": "3.22.0",
"version": "3.22.1",
"description": "Simple and fast note-taking.",
"author": "Pavel Bucka",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/notes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ const Notes = (): h.JSX.Element => {
<__Content
note={{
...contentNote,
locked: notesProps.notes[contentNote.active].locked || false,
locked: contentNote.active in notesProps.notes ? (notesProps.notes[contentNote.active].locked || false) : false,
}}
onEdit={(active, content) => {
tabId && notesRef.current && saveNote(active, content, tabId, notesRef.current);
Expand Down

0 comments on commit df041a1

Please sign in to comment.