Skip to content

Commit

Permalink
Fixes Scalars Module resize bug affecting datasets with scalar fields.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 493951549
  • Loading branch information
RyanMullins authored and LIT team committed Dec 8, 2022
1 parent c4f5bd9 commit 453461a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lit_nlp/client/modules/scalar_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,9 @@ export class ScalarModule extends LitModule {
this.containerSelector(id));
if (container == null || info.hidden) continue;

const {brush, scene, model, key, points, xScale, yScale} = info;
const {brush, scene, key, points, xScale, yScale} = info;
if (brush == null || scene == null || key == null || points == null ||
model == null || xScale == null || yScale == null) continue;
xScale == null || yScale == null) continue;

// Update the xScale range width of div.axes
const sceneDiv = container.querySelector<HTMLDivElement>('.scene')!;
Expand Down

0 comments on commit 453461a

Please sign in to comment.