Skip to content

Commit 03276b8

Browse files
author
quao
committed
enha 优化三元表达式
1 parent 36c1c59 commit 03276b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/coord/cartesian/Grid.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,8 @@ class Grid implements CoordinateSystemMaster {
587587
if (!item) {
588588
return;
589589
}
590-
const items = isObject(item) && !item.coord && !item.xAxis && !item.yAxis
591-
? (Array.isArray(item) ? item : [item])
592-
: [item];
590+
const items = isObject(item) && !item.coord && !item.xAxis && !item.yAxis && Array.isArray(item)
591+
? item : [item];
593592

594593
each(items, function (markerItem) {
595594
if (!markerItem) {

0 commit comments

Comments
 (0)