Skip to content

Commit

Permalink
Merge pull request #373 from prodonjs/fix-bq-empty-editor
Browse files Browse the repository at this point in the history
Fix issue where service worker result concats undefined.
  • Loading branch information
prodonjs authored Nov 4, 2020
2 parents 9b7ea24 + 4453735 commit 46f1da6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function workerFunc(e, batchSize) {

this.postMessage({ batch, finish: false });
}
this.postMessage({ batch: undefined, finish: true });
this.postMessage({ batch: [], finish: true });
}

class QueryTextEditor extends React.Component<
Expand Down Expand Up @@ -633,7 +633,7 @@ class QueryTextEditor extends React.Component<
return (
<IconButton
size="small"
onClick={_ => {
onClick={() => {
const query = this.editor.getValue();
copy(query.trim());
this.props.openSnackbar({
Expand Down
4 changes: 2 additions & 2 deletions jupyterlab_bigquery/src/components/shared/bq_table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class BQTable extends React.Component<Props, State> {
const fields = ['Row', ...this.props.fields];

return (
<>
<div>
<div className={localStyles.scrollable}>
<Table
size="small"
Expand Down Expand Up @@ -239,7 +239,7 @@ export class BQTable extends React.Component<Props, State> {
component="div"
/>
)}
</>
</div>
);
}
}

0 comments on commit 46f1da6

Please sign in to comment.