Skip to content

Commit e02ca38

Browse files
committed
style(marker): improve code
1 parent 710e79d commit e02ca38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/marker/markerHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function dataTransform(
105105

106106
const data = seriesModel.getData();
107107
const coordSys = seriesModel.coordinateSystem;
108-
const dims = coordSys?.dimensions;
108+
const dims = coordSys && coordSys.dimensions;
109109

110110
// 1. If not specify the position with pixel directly
111111
// 2. If `coord` is not a data array. Which uses `xAxis`,

0 commit comments

Comments
 (0)