Skip to content

Commit 582862d

Browse files
Merge pull request #59924 from nextcloud/backport/59904/stable32
[stable32] Fix(files): internal drag and drop
2 parents 5f38893 + b94fbd9 commit 582862d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/files/src/components/FileEntryMixin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ export default defineComponent({
485485
files,
486486
async (nodes, path) => {
487487
try {
488-
const { contents, folder } = await this.activeView!.getContents(path)
488+
const { contents, folder } = await this.currentView!.getContents(path)
489489
const conflicts = getConflicts(nodes, contents)
490490
if (conflicts.length === 0) {
491491
return nodes
@@ -517,9 +517,9 @@ export default defineComponent({
517517
}
518518

519519
// We might not have the target directory fetched yet
520-
const cachedContents = this.filesStore.getNodesByPath(this.activeView.id, this.source.path)
520+
const cachedContents = this.filesStore.getNodesByPath(this.currentView.id, this.source.path)
521521
const contents = cachedContents.length === 0
522-
? (await this.activeView!.getContents(this.source.path)).contents
522+
? (await this.currentView!.getContents(this.source.path)).contents
523523
: cachedContents
524524

525525
const isCopy = event.ctrlKey

dist/files-main.js

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

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)