Skip to content

Commit 567ba59

Browse files
authored
Fix "TypeError: t is undefined"
vue created does not guaranteed that all refs filled. Sometime $refs.editor is undefined. Also an extra tick like in line 84 does not help. using mounted instead of created fixes this issues Signed-off-by: Holger Hees <[email protected]>
1 parent 4eb8273 commit 567ba59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NoteRich.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default {
5252
},
5353
},
5454
55-
created() {
55+
mounted() {
5656
this.fetchData()
5757
subscribe('files:file:updated', this.fileUpdated)
5858
subscribe('files_versions:restore:requested', this.onFileRestoreRequested)

0 commit comments

Comments
 (0)