From a981172c9b0d98019421d0d755ffecae4af69658 Mon Sep 17 00:00:00 2001 From: sehilyi Date: Wed, 12 Jun 2024 15:14:53 -0400 Subject: [PATCH] fix(core): remove 'template' key from a trample track after spec processing --- src/core/utils/template.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/utils/template.ts b/src/core/utils/template.ts index 85adffce..57294f84 100644 --- a/src/core/utils/template.ts +++ b/src/core/utils/template.ts @@ -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',