fix(a-app): bail out of showGroupDrawer for non-C15 engines
showGroupDrawer indexes into the hardcoded SYNTH_SECTIONS table and groupOverrides, which only exist for the shaper-feedback engine. For additive/fm/modular engines, paramToSection is rebuilt dynamically from paramMeta groups, so region.index points into a larger dynamic section list and SYNTH_SECTIONS[region.index] is undefined. Hovering a section label in Modular mode threw "Cannot read properties of undefined (reading 'name')". These engines have their own param UIs; the C15 group drawer doesn't apply. Guard and early-return.
This commit is contained in:
parent
afff406d92
commit
2993328859
1 changed files with 4 additions and 0 deletions
|
|
@ -3842,6 +3842,10 @@ function wireGroupDrawer() {
|
|||
}
|
||||
|
||||
function showGroupDrawer(region) {
|
||||
// Group drawer is C15-specific: indexes into the hardcoded SYNTH_SECTIONS
|
||||
// table and groupOverrides, which only exist for the shaper-feedback engine.
|
||||
// Other engines (additive, fm, modular) have their own param UIs.
|
||||
if (activeEngine?.id !== 'shaper-feedback') return;
|
||||
activeDrawerSection = region.index;
|
||||
const sec = SYNTH_SECTIONS[region.index];
|
||||
const ov = groupOverrides[region.index];
|
||||
|
|
|
|||
Loading…
Reference in a new issue