From 72a6838e41cff37d661062ab36d7689a811ea167 Mon Sep 17 00:00:00 2001 From: Timothy Gerstel Date: Wed, 13 Sep 2023 16:07:04 -0400 Subject: [PATCH] Update installation args with the absolute path to the selected PAX if the user selects the upload installation type Signed-off-by: Timothy Gerstel --- .../components/stages/installation/InstallTypeSelection.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/components/stages/installation/InstallTypeSelection.tsx b/src/renderer/components/stages/installation/InstallTypeSelection.tsx index 028ab6f3..dd7513e6 100644 --- a/src/renderer/components/stages/installation/InstallTypeSelection.tsx +++ b/src/renderer/components/stages/installation/InstallTypeSelection.tsx @@ -94,8 +94,10 @@ const InstallationType = () => { window.electron.ipcRenderer.uploadPax().then((res: any) => { if(res.filePaths && res.filePaths[0] != undefined){ setPaxPath(res.filePaths[0]); + dispatch(setInstallationArgs({...installationArgs, userUploadedPaxPath: res.filePaths[0]})); } else { setPaxPath(""); + dispatch(setInstallationArgs({...installationArgs, userUploadedPaxPath: ''})); } }); }}>Upload PAX