fix: refresh bank list when dropdown is opened (#504)

Previously, the bank selector dropdown only loaded banks on initial page
load, requiring a full page refresh to see newly created banks. Now calls
loadBanks() each time the popover opens.
This commit is contained in:
Derek Bouius 2026-03-05 17:14:54 -05:00 committed by GitHub
parent 1e40cd22a6
commit 0ad8c2d09c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -367,7 +367,13 @@ function BankSelectorInner() {
<div className="h-8 w-px bg-border" />
{/* Memory Bank Selector */}
<Popover open={open} onOpenChange={setOpen}>
<Popover
open={open}
onOpenChange={(isOpen) => {
setOpen(isOpen);
if (isOpen) loadBanks();
}}
>
<PopoverTrigger asChild>
<Button
variant="outline"