Skip to content

Commit

Permalink
fix: Provide valid fileList and fileId context on new file action
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed Aug 21, 2023
1 parent 789d5f8 commit 7cf9191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view/NewFileMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ const NewFileMenu = {
const fileAction = OCA.Files.fileActions.getDefaultFileAction(fileModel.get('mimetype'), 'file', OC.PERMISSION_ALL)
fileAction.action(filename, {
$file: null,
fileId: fileModel.id,
dir: getCurrentDirectory(),
FileList,
fileList: FileList,
fileActions: FileList.fileActions,
})
} else {
Expand Down

0 comments on commit 7cf9191

Please sign in to comment.