From ebc10acf0f4c936b4be16c060e359fa4a68ff7fc Mon Sep 17 00:00:00 2001 From: sehilyi Date: Mon, 25 Sep 2023 17:17:42 -0400 Subject: [PATCH] chore: format --- src/compiler/compile.test.ts | 4 ++-- src/core/gosling-component.tsx | 2 +- src/core/utils/overlay.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/compile.test.ts b/src/compiler/compile.test.ts index 51d948ac..3520c60e 100644 --- a/src/compiler/compile.test.ts +++ b/src/compiler/compile.test.ts @@ -260,7 +260,7 @@ describe('Maintain IDs', () => { data: { type: 'csv', url: 'http://def' } } ] - } + }; const flattened = convertToFlatTracks(twoTracksWithDiffData); const spread = spreadTracksByData(flattened); expect(spread).toMatchInlineSnapshot(` @@ -295,4 +295,4 @@ describe('Maintain IDs', () => { ] `); }); -}); \ No newline at end of file +}); diff --git a/src/core/gosling-component.tsx b/src/core/gosling-component.tsx index d25af913..d5fe1e13 100644 --- a/src/core/gosling-component.tsx +++ b/src/core/gosling-component.tsx @@ -86,7 +86,7 @@ export const GoslingComponent = forwardRef((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) { diff --git a/src/core/utils/overlay.ts b/src/core/utils/overlay.ts index 51754451..2468a5eb 100644 --- a/src/core/utils/overlay.ts +++ b/src/core/utils/overlay.ts @@ -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; }