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 committed Aug 23, 2023
1 parent 35c58fd commit e6722e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/view/NewFileMenu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* @copyright Copyright (c) 2020 Julius Härtl <[email protected]>
git add * @copyright Copyright (c) 2020 Julius Härtl <[email protected]>
*
* @author Julius Härtl <[email protected]>
*
Expand Down Expand Up @@ -107,7 +107,8 @@ const NewFileMenu = {
fileAction.action(filename, {
$file: null,
dir: FileList.getCurrentDirectory(),
FileList,
fileId: fileModel.id,
fileList: FileList,
fileActions: FileList.fileActions,
})
} else {
Expand Down

0 comments on commit e6722e4

Please sign in to comment.