From a6b86fac9c100f191a5a19880f3ccad39eac5e05 Mon Sep 17 00:00:00 2001 From: Emma Date: Tue, 18 Oct 2022 11:50:59 -0400 Subject: [PATCH] Adding filePaths to the web file picker response (#2739) `filePaths` is now used to decide which `subscription.db` type to parse, so this is needed here --- src/renderer/store/modules/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 6e82d38f..ede293a1 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -286,7 +286,7 @@ const actions = { } fileInput.onchange = () => { const files = Array.from(fileInput.files) - resolve({ canceled: false, files }) + resolve({ canceled: false, files, filePaths: files.map(({ name }) => { return name }) }) delete fileInput.onchange } const listenForEnd = () => {