Skip to content

Commit

Permalink
Slight improvement in variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Oct 20, 2023
1 parent 7f4fceb commit 8a94948
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/core/pluggableElementTypes/models/baseTrackConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,11 @@ export function createBaseTrackConfig(pluginManager: PluginManager) {
// Gets the displays on the track snapshot and the possible displays
// from the track type and adds any missing possible displays to the
// snapshot
const displayTypes = new Set(
const configDisplayTypes = new Set(
displays.filter(d => !!d).map(d => d.type),
)
const trackType = pluginManager.getTrackType(snap.type)
trackType.displayTypes.forEach(d => {
if (!displayTypes.has(d.name)) {
pluginManager.getTrackType(snap.type).displayTypes.forEach(d => {
if (!configDisplayTypes.has(d.name)) {
displays.push({
displayId: `${snap.trackId}-${d.name}`,
type: d.name,
Expand Down

0 comments on commit 8a94948

Please sign in to comment.