Skip to content

Commit

Permalink
Update apps/files/src/views/FilesList.vue
Browse files Browse the repository at this point in the history
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: Raul Ferreira Fuentes <Raudius@users.noreply.github.com>
  • Loading branch information
Raudius and skjnldsv committed Jan 10, 2024
1 parent 84cff85 commit b3bf1cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/views/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export default defineComponent({
mounted() {
this.fetchContent()
subscribe('files:node:updated', this.onUpdateNode)
subscribe('files:node:updated', this.onUpdatedNode)
},
methods: {
Expand Down Expand Up @@ -563,7 +563,7 @@ export default defineComponent({
* @param {Node} node is the file/folder being updated.
*/
onUpdatedNode(node) {
if (node.fileid === this.currentFolder.fileid) {
if (node?.fileid === this.currentFolder?.fileid) {
this.fetchContent()
}
},
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit b3bf1cf

Please sign in to comment.