From d86b6c249c18560ba8a4b715f73e6862525d1b8a Mon Sep 17 00:00:00 2001 From: averrin Date: Mon, 25 Jul 2022 19:35:44 +0200 Subject: [PATCH] another fix --- CHANGELOG.md | 5 +++++ src/view/components/SequencerTab.svelte | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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() {