From 4d1f2a93019c22bbaa74e89fa9c20b824e8716c6 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 19 Sep 2026 19:13:41 +0000 Subject: [PATCH] js: fix contrived crash (closes #1516); view textfile, sel, delete, sel, boom --- copyparty/web/browser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 3e71f0db9..9c09cb438 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -4601,6 +4601,9 @@ var fileman = (function () { if (err !== 'xbd') toast.ok(2, L.fd_ok); + if (QS('#seldoc.sel')) + thegrid.setvis(true); + treectl.goto(); return; }