Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
sehilyi committed Sep 25, 2023
1 parent c398b71 commit ebc10ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/compiler/compile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe('Maintain IDs', () => {
data: { type: 'csv', url: 'http://def' }
}
]
}
};
const flattened = convertToFlatTracks(twoTracksWithDiffData);
const spread = spreadTracksByData(flattened);
expect(spread).toMatchInlineSnapshot(`
Expand Down Expand Up @@ -295,4 +295,4 @@ describe('Maintain IDs', () => {
]
`);
});
});
});
2 changes: 1 addition & 1 deletion src/core/gosling-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const GoslingComponent = forwardRef<GoslingRef, GoslingCompProps>((props,
* This makes sure that all the current zooming status is preserved when new tracks are added
*/
const preverseZoomStatus = (newSpec: gosling.HiGlassSpec, prevSpec: gosling.HiGlassSpec) => {
newSpec.views.forEach((view) => {
newSpec.views.forEach(view => {
const viewUid = view.uid!;
const newView = !prevSpec.views.find(v => v.uid === viewUid);
if (newView) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function spreadTracksByData(tracks: Track[]): Track[] {
}

// If the id is undefined, put the first spec to the parent
if(!original.id) {
if (!original.id) {
original.id = subSpec.id;
}

Expand Down

0 comments on commit ebc10ac

Please sign in to comment.