Skip to content

Commit

Permalink
fix(series): fix series data type judgment bug. close #14293 (#14413)
Browse files Browse the repository at this point in the history
* fix(series): fix series data type judgment bug. close #14293

* fix(series): fix series data type judgment bug. close #14293

* fix(style): change code style

* fix(remove files): remove history files
  • Loading branch information
leosxie committed Mar 8, 2021
1 parent 31a6de8 commit 13f1f03
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/model/Series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,7 @@ class SeriesModel<Opt extends SeriesOption = SeriesOption> extends ComponentMode
if (data.hasItemOption) {
data.each(function (idx) {
const rawItem = data.getRawDataItem(idx);
if (typeof rawItem === 'object'
&& (rawItem as OptionDataItemObject<unknown>).selected
) {
if (rawItem && (rawItem as OptionDataItemObject<unknown>).selected) {
dataIndices.push(idx);
}
});
Expand Down
75 changes: 75 additions & 0 deletions test/line-non-continuous.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 13f1f03

Please sign in to comment.