Skip to content

Commit

Permalink
fix(base-chart): only check datastreams with data types in unsupporte…
Browse files Browse the repository at this point in the history
…d check
  • Loading branch information
jmbuss committed Dec 5, 2023
1 parent 38b5167 commit 3ef533f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ export class ScWebglBaseChart {

if (visualizedDataStreams.length === 0) return false;

return !visualizedDataStreams.every(
const dataStreamsWithDataType = visualizedDataStreams.filter(({ dataType }) => dataType != null);

return !dataStreamsWithDataType.every(
({ streamType, dataType }) => streamType === StreamType.ALARM || this.supportedDataTypes.includes(dataType)
);
};
Expand Down

0 comments on commit 3ef533f

Please sign in to comment.