From e6722e45b840f5b0887d22f4ce724c35b4556c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 16 Aug 2023 11:50:44 +0200 Subject: [PATCH] fix: Provide valid fileList and fileId context on new file action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/view/NewFileMenu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/NewFileMenu.js b/src/view/NewFileMenu.js index f739bab4b0..85663c4048 100644 --- a/src/view/NewFileMenu.js +++ b/src/view/NewFileMenu.js @@ -1,5 +1,5 @@ /* - * @copyright Copyright (c) 2020 Julius Härtl +git add * @copyright Copyright (c) 2020 Julius Härtl * * @author Julius Härtl * @@ -107,7 +107,8 @@ const NewFileMenu = { fileAction.action(filename, { $file: null, dir: FileList.getCurrentDirectory(), - FileList, + fileId: fileModel.id, + fileList: FileList, fileActions: FileList.fileActions, }) } else {