fix: reopen the merge dialog after dismissing it

This commit is contained in:
2026-08-17 10:35:24 -04:00
parent d16a90f08f
commit 75fe41e266
2 changed files with 20 additions and 2 deletions
@@ -190,7 +190,16 @@
<MergeBooks
books={recordsFor(merging)}
libraryId={page.params.libraryId!}
open={true}
bind:open={
() => merging !== null,
(value) => {
// Bound, not passed as a bare `true`: the dialog closes itself on an
// outside click or Escape, and if that never reaches `merging` the
// group stays set — the button then re-assigns the same group,
// nothing changes, and the workbench never reopens.
if (!value) merging = null;
}
}
onmerged={() => (merging = null)}
/>
{/key}