Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
save
  • Loading branch information
tafsiri committed Sep 18, 2019
commit 7044eb2454d9f25eaf4d7d8f18a90867a8391722
4 changes: 2 additions & 2 deletions tfjs-vis/src/render/heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ export async function heatmap(

// Data validation
const {xTickLabels, yTickLabels} = data;
if (xTickLabels) {
if (xTickLabels != null) {
const dimension = 0;
assertLabelsMatchShape(inputValues, xTickLabels, dimension);
}

// Note that we will only do a check on the first element of the second
// dimension. We do not protect users against passing in a ragged array.
if (yTickLabels) {
if (yTickLabels != null) {
const dimension = 1;
assertLabelsMatchShape(inputValues, yTickLabels, dimension);
}
Expand Down