Skip to content

Commit 227d48f

Browse files
[autofix.ci] apply automated fixes
1 parent 74e95c3 commit 227d48f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/components/Chart/SplitSparkline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const configs = computed(() => {
215215
width="30"
216216
height="30"
217217
rx="3"
218-
:fill="i === 0 ? dataset?.[0]?.color ?? palette[0] : `url(#marker_${i})`"
218+
:fill="i === 0 ? (dataset?.[0]?.color ?? palette[0]) : `url(#marker_${i})`"
219219
/>
220220
</svg>
221221
</div>

app/utils/charts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,5 +730,5 @@ export function applyEllipsis(text: string, maxLength = 45) {
730730
export const CHART_PATTERN_CONFIG = {
731731
disambiguator: 1,
732732
minSize: 16,
733-
maxSize: 24
734-
}
733+
maxSize: 24,
734+
}

test/unit/app/utils/charts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,4 +1398,4 @@ describe('applyEllipsis', () => {
13981398
it('preserves whitespace within the truncated portion', () => {
13991399
expect(applyEllipsis('you need to touch grass', 13)).toBe('you need to t...')
14001400
})
1401-
})
1401+
})

0 commit comments

Comments
 (0)