Skip to content

Commit

Permalink
Fix datagrid error when resetThemes() is called while hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed May 1, 2022
1 parent 6bbcb40 commit af5d198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perspective-viewer-datagrid/src/js/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ export class PerspectiveViewerDatagridPluginElement extends HTMLElement {
}

async draw(view) {
await this.activate(view);
if (!this.isConnected || this.offsetParent == null) {
return;
}

await this.activate(view);
const old_sizes = this._save_column_size_overrides();
let viewer = this.parentElement;
const draw = this.datagrid.draw({invalid_columns: true});
Expand Down

0 comments on commit af5d198

Please sign in to comment.