Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed May 14, 2018
1 parent 9ca224f commit 7e0e9dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/perspective-jupyterlab/src/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export class RenderedPSP extends Widget implements IRenderMime.IRenderer {
if (this._loaded) return;
let psp = (<any>(this.node.querySelector('perspective-viewer')));

let schema = JSON.parse(this._schema);
let layout = JSON.parse(this._lyt);

for(let key in layout){
Expand All @@ -59,7 +58,8 @@ export class RenderedPSP extends Widget implements IRenderMime.IRenderer {
}
}

if (schema) {
if (this._schema !== '') {
let schema = JSON.parse(this._schema);
psp.load(schema);
}

Expand Down

0 comments on commit 7e0e9dc

Please sign in to comment.