diff --git a/src/view/components/SequencerTab.js b/src/view/components/SequencerTab.js index c5353bc..eee9e73 100644 --- a/src/view/components/SequencerTab.js +++ b/src/view/components/SequencerTab.js @@ -153,7 +153,9 @@ controlled.forEach(c => c.control());`; for (const a of pre_args) { const spec = m.spec.args[n]; if (spec.option) { - options[spec.label] = a.replaceAll('"', ''); + if (typeof a === 'string' || a instanceof String) { + options[spec.label] = a.replaceAll('"', ''); + } } else { args.push(a); } diff --git a/src/view/components/SequencerTab.svelte b/src/view/components/SequencerTab.svelte index e8f25ba..7365e18 100644 --- a/src/view/components/SequencerTab.svelte +++ b/src/view/components/SequencerTab.svelte @@ -18,6 +18,7 @@ } fullCode = getCode(); }); + $: debounce(() => (fullCode = getCode()), 200); onDestroy(unsubscribe); function getCode() {