fix: bank display showing 1 instead of 0 + build fixes
- Removed 'e.bank||1' falsy trap (was converting bank 0 to 1) - Fixed TypeScript errors: cp guard, unused vars, path aliases - Added base: '/ui/' to vite config for correct asset paths - Bank persistence already implemented (localStorage pedal-footswitch-bank) - Rebuilt and deployed to src/web/ui-dist/
This commit is contained in:
@@ -575,6 +575,7 @@ function PedalContent() {
|
||||
if (names.length > 0) setBankNames(names);
|
||||
|
||||
const cp = state.current_preset;
|
||||
if (!cp) return;
|
||||
const bank = data.banks?.[cp.bank];
|
||||
const preset = bank?.presets?.[cp.program];
|
||||
if (preset?.chain) {
|
||||
|
||||
Reference in New Issue
Block a user