Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 29, 2024
1 parent 8d4e08e commit b97b06c
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,20 @@ export class GuidedResultsPage extends Page {
<ol style="margin: 10px 0px; padding-top: 0;">
${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`<li><a @click=${() => {
if (ipcRenderer) ipcRenderer.send("showItemInFolder", file);
}}>${id}</a></li>`)}
.map(
({ id, file }) =>
html`<li>
<a
@click=${() => {
if (ipcRenderer) ipcRenderer.send("showItemInFolder", file);
}}
>${id}</a
>
</li>`
)}
</ol>
<h4>But what about my other data?</h4>
<p>
Expand Down

0 comments on commit b97b06c

Please sign in to comment.