Skip to content

Commit df041a1

Browse files
authored
Merge pull request #383 from penge/fix
Fix renaming and deleting
2 parents 0bbb16b + cf06ce9 commit df041a1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "My Notes",
44
"description": "Simple and fast note-taking.",
5-
"version": "3.22",
5+
"version": "3.22.1",
66
"homepage_url": "https://github.com/penge/my-notes",
77
"icons": {
88
"128": "images/icon128.png"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "my-notes",
3-
"version": "3.22.0",
3+
"version": "3.22.1",
44
"description": "Simple and fast note-taking.",
55
"author": "Pavel Bucka",
66
"license": "MIT",

src/notes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ const Notes = (): h.JSX.Element => {
687687
<__Content
688688
note={{
689689
...contentNote,
690-
locked: notesProps.notes[contentNote.active].locked || false,
690+
locked: contentNote.active in notesProps.notes ? (notesProps.notes[contentNote.active].locked || false) : false,
691691
}}
692692
onEdit={(active, content) => {
693693
tabId && notesRef.current && saveNote(active, content, tabId, notesRef.current);

0 commit comments

Comments
 (0)