Skip to content

Commit

Permalink
fix(core): remove 'template' key from a trample track after spec proc…
Browse files Browse the repository at this point in the history
…essing
  • Loading branch information
sehilyi committed Jun 12, 2024
1 parent ed4caf9 commit a981172
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ export function replaceTrackTemplates(spec: GoslingSpec, templates: TemplateTrac
if ('encoding' in viewBase) {
delete viewBase.encoding;
}
// Remove a template property since it is not a template anymore
if('template' in viewBase) {
delete viewBase.template;
}
const convertedView: OverlaidTracks = {
...viewBase,
alignment: 'overlay',
Expand Down

0 comments on commit a981172

Please sign in to comment.