From f726df51a288fd09d6f16cac75ef5217988afe84 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Wed, 18 Sep 2024 15:52:05 +0200 Subject: [PATCH] feat: Expose `fileToArrayBuffer` from ActionsMenu actions helpers --- react/ActionsMenu/Actions/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/ActionsMenu/Actions/helpers.js b/react/ActionsMenu/Actions/helpers.js index e56d03073b..80de59e231 100644 --- a/react/ActionsMenu/Actions/helpers.js +++ b/react/ActionsMenu/Actions/helpers.js @@ -177,7 +177,7 @@ const addImageToPdf = async (pdfDoc, file) => { * @param {File} file * @returns {Promise} */ -const fileToArrayBuffer = async file => { +export const fileToArrayBuffer = async file => { if ('arrayBuffer' in file) return await file.arrayBuffer() return new Promise((resolve, reject) => {