Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
averrin committed Jul 25, 2022
1 parent 3dd5507 commit d86b6c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d

## [Unreleased]

## [0.7.2](https://github.com/averrin/director/compare/0.7.1...0.7.2)

Fixed:
* convertToCode error when sequence is obsolete

## [0.7.1](https://github.com/averrin/director/compare/0.7.0...0.7.1)

Fixed:
Expand Down
9 changes: 7 additions & 2 deletions src/view/components/SequencerTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@
onDestroy(unsubscribe);
function getCode() {
seq = DSequence.fromPlain(seq);
return seq.convertToCode();
try {
seq = DSequence.fromPlain(seq);
return seq?.convertToCode();
} catch (error) {
logger.error(error);
return ``;
}
}
function getOnelliner() {
Expand Down

0 comments on commit d86b6c2

Please sign in to comment.