diff --git a/CHANGELOG.md b/CHANGELOG.md index a471b25..ced5f36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/src/view/components/SequencerTab.svelte b/src/view/components/SequencerTab.svelte index c20606e..d9b0aa1 100644 --- a/src/view/components/SequencerTab.svelte +++ b/src/view/components/SequencerTab.svelte @@ -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() {