From 1b128c51a5fd2e649f2fb52a47b8445a88120dd7 Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Tue, 7 May 2024 14:27:05 +0300 Subject: [PATCH] fix: correct payload as an array Signed-off-by: Andrey Borysenko --- src/filesplugin28.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesplugin28.js b/src/filesplugin28.js index d35df3e2..4df414c5 100644 --- a/src/filesplugin28.js +++ b/src/filesplugin28.js @@ -65,7 +65,7 @@ function registerFileAction28(fileAction, inlineSvgIcon) { }, async exec(node, view, dir) { const exAppFileActionHandler = generateAppAPIProxyUrl(fileAction.appid, fileAction.action_handler) - return axios.post(exAppFileActionHandler, buildNodeInfo(node)) + return axios.post(exAppFileActionHandler, {files: [buildNodeInfo(node)]}) .then((response) => { if ('redirect_handler' in response.data) { const redirectPage = generateExAppUIPageUrl(fileAction.appid, response.data.redirect_handler)