From d00a6083fc2180d54eefc032755db868ab0677aa Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 17 Feb 2026 22:05:47 +0100 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: silverwind --- web_src/js/features/repo-diff.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/features/repo-diff.ts b/web_src/js/features/repo-diff.ts index fe1325c6ac..6fb930621e 100644 --- a/web_src/js/features/repo-diff.ts +++ b/web_src/js/features/repo-diff.ts @@ -373,11 +373,11 @@ function initDiffExpandAllLines() { }); // Handle individual expand button clicks - addDelegatedEventListener(document, 'click', '.code-expander-button', (btn, e) => { + addDelegatedEventListener(document, 'click', '.code-expander-button', async (btn, e) => { e.preventDefault(); const tr = btn.closest('tr'); const url = btn.getAttribute('data-url'); - if (tr && url) fetchBlobExcerpt(tr, url); + if (tr && url) await fetchBlobExcerpt(tr, url); }); }