Skip to content

Commit 5a193bd

Browse files
committed
feat(Note): remove unnecessary props
1 parent 5f4b5f1 commit 5a193bd

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

components/notesLayout/Note.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ export default {
3939
type: String,
4040
required: true
4141
},
42-
page: {
43-
type: String,
44-
required: true
45-
},
4642
content: {
4743
type: String,
4844
default: ''
@@ -58,11 +54,6 @@ export default {
5854
author: {
5955
type: String,
6056
required: true
61-
},
62-
newNote: {
63-
type: Boolean,
64-
required: false,
65-
default: false
6657
}
6758
},
6859
data() {
@@ -103,7 +94,7 @@ export default {
10394
},
10495
save() {
10596
this.$store.commit('notes/editNote', {
106-
page: this.page,
97+
page: this.pageId,
10798
noteId: this.noteId,
10899
author: this.author,
109100
updated: {

pages/_pageID.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
:position="note.position"
1111
:styles="note.styles"
1212
:author="note.author"
13-
:new-note="note.newNote"
14-
:page="note.page"
1513
:note-id="note.noteId"
1614
@remove-note="onRemoveNote"
1715
/>

0 commit comments

Comments
 (0)