Skip to content

Commit

Permalink
fix stuck copy code
Browse files Browse the repository at this point in the history
  • Loading branch information
averrin committed Jul 4, 2022
1 parent cb6a4d9 commit f12e4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/components/SequencerTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions src/view/components/SequencerTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}
fullCode = getCode();
});
$: debounce(() => (fullCode = getCode()), 200);
onDestroy(unsubscribe);
function getCode() {
Expand Down

0 comments on commit f12e4bd

Please sign in to comment.