From 8d4e08e0a55bce434a57700afa2f07ec8c0350af Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Wed, 29 May 2024 14:07:39 -0700 Subject: [PATCH 1/2] Update GuidedResults.js --- .../pages/guided-mode/results/GuidedResults.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js b/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js index af1be09d66..12710d7c79 100644 --- a/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js +++ b/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js @@ -53,9 +53,13 @@ export class GuidedResultsPage extends Page {

Your data was successfully converted to NWB!

    ${getStubArray(conversion) - .map(({ file }) => file.split(path.sep).slice(-1)[0]) - .sort() - .map((id) => html`
  1. ${id}
  2. `)} + .map(({ file }) => { + return { file, id: file.split(path.sep).slice(-1)[0] } + }) + .sort((a, b) => a.id.localeCompare(b.id)) + .map(({ id, file }) => html`
  3. { + if (ipcRenderer) ipcRenderer.send("showItemInFolder", file); + }}>${id}
  4. `)}

But what about my other data?

From b97b06c85e397e9df3769f4f6417481fe4ba5360 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 21:08:43 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../pages/guided-mode/results/GuidedResults.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js b/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js index 12710d7c79..b0eb8eafc6 100644 --- a/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js +++ b/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js @@ -54,12 +54,20 @@ export class GuidedResultsPage extends Page {

    ${getStubArray(conversion) .map(({ file }) => { - return { file, id: file.split(path.sep).slice(-1)[0] } + return { file, id: file.split(path.sep).slice(-1)[0] }; }) .sort((a, b) => a.id.localeCompare(b.id)) - .map(({ id, file }) => html`
  1. { - if (ipcRenderer) ipcRenderer.send("showItemInFolder", file); - }}>${id}
  2. `)} + .map( + ({ id, file }) => + html`
  3. + { + if (ipcRenderer) ipcRenderer.send("showItemInFolder", file); + }} + >${id} +
  4. ` + )}

But what about my other data?