fix: catalog lookup uses lowercased key for merge

- catalog keys are lowercased (soundfont_inspector: .lower())
- sf.id from _scan_soundfonts has original case (SGM_v2.01)
- Use catalog[sfId.toLowerCase()] || catalog[sfId] to match both
This commit is contained in:
2026-07-27 09:44:28 +07:00
parent 2ad29226c4
commit fba3664a1c
+2 -1
View File
@@ -6542,7 +6542,8 @@ const App = () => {
// Merge presets into each soundfont entry
data.soundfonts = (data.soundfonts || []).map(sf => {
const sfId = sf.id.replace('sf_', '');
const catEntry = catalog[sfId];
// Catalog keys are lowercased by soundfont_inspector
const catEntry = catalog[sfId.toLowerCase()] || catalog[sfId];
if (catEntry && catEntry.instruments) {
return { ...sf, presets: catEntry.instruments };
}