Skip to content

Commit

Permalink
fix(core): remove "template" key from template track after processi…
Browse files Browse the repository at this point in the history
…ng (#1079)

fix(core): remove 'template' key from a trample track after spec processing
  • Loading branch information
sehilyi authored Jun 12, 2024
1 parent ed4caf9 commit 0e17a44
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 0e17a44

Please sign in to comment.