Skip to content

Commit 89b647c

Browse files
author
GitHub Actions Bot
committed
style: auto-formatting [CI]
1 parent 760cc03 commit 89b647c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ export function stack(m: Mark | MarkDef, encoding: Encoding<string>): StackPrope
185185
// TODO: Figure out why groupBy is only sometimes necessary?
186186
// Unclear why the test case and the bug report differ in whether a groupBy should be supplied to vega or not
187187
// const shouldAddPolarGroupBy = dimensionField === 'dir' || (fieldChannel === dimensionChannel);
188-
const shouldAddPolarGroupBy = (fieldChannel === dimensionChannel);
188+
const shouldAddPolarGroupBy = fieldChannel === dimensionChannel;
189189

190190
// if (!hasSameDimensionAndStackedField) {
191-
if (!hasSameDimensionAndStackedField && (isPolar ? (shouldAddPolarGroupBy) : true)) {
191+
if (!hasSameDimensionAndStackedField && (isPolar ? shouldAddPolarGroupBy : true)) {
192192
// avoid grouping by the stacked field
193193
// TKTK: find out why
194194
groupbyChannels.push(dimensionChannel);

0 commit comments

Comments
 (0)