fix(lists): the satellite list was never sent to be saved

Save builds the lists payload field by field, and the new list was not
among them — so every Save wrote an empty satellites array over whatever
had just been typed.

Normalised in the save as well as on the field's blur: the Save button is
reachable without ever leaving the box, and a list whose survival depends
on where the cursor went first is a list that saves sometimes.
This commit is contained in:
2026-08-25 19:43:16 +02:00
parent 1e87081058
commit e4276ff66e
@@ -2345,6 +2345,11 @@ export function SettingsModal({ onClose, onSaved, initialSection, onMainPaneChan
rst_phone: splitList(rstText.phone), rst_phone: splitList(rstText.phone),
rst_cw: splitList(rstText.cw), rst_cw: splitList(rstText.cw),
rst_digital: splitList(rstText.digital), rst_digital: splitList(rstText.digital),
// Normalised HERE and not only on the field's blur: Save is reachable
// without ever leaving the box, and a list that depends on where the
// cursor went before the click is a list that sometimes saves.
satellites: Array.from(new Set(((lists.satellites ?? []) as string[])
.map((v) => v.trim().toUpperCase()).filter(Boolean))).sort(),
} as any); } as any);
if (activeProfile) { if (activeProfile) {