diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index 0831c50afd6..089dad58967 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -485,7 +485,7 @@ export default defineComponent({ files, async (nodes, path) => { try { - const { contents, folder } = await this.activeView!.getContents(path) + const { contents, folder } = await this.currentView!.getContents(path) const conflicts = getConflicts(nodes, contents) if (conflicts.length === 0) { return nodes @@ -517,9 +517,9 @@ export default defineComponent({ } // We might not have the target directory fetched yet - const cachedContents = this.filesStore.getNodesByPath(this.activeView.id, this.source.path) + const cachedContents = this.filesStore.getNodesByPath(this.currentView.id, this.source.path) const contents = cachedContents.length === 0 - ? (await this.activeView!.getContents(this.source.path)).contents + ? (await this.currentView!.getContents(this.source.path)).contents : cachedContents const isCopy = event.ctrlKey