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:
2026-06-13 10:18:33 -04:00
parent 82f687323c
commit 575535762c
60 changed files with 116 additions and 13183 deletions
+1
View File
@@ -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) {