Skip to content

Commit

Permalink
Fix docs compilation unused var errors (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wu authored and giladgray committed Jan 13, 2017
1 parent ad86f26 commit 1bca7fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions packages/table/examples/cellLoadingExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ export class CellLoadingExample extends BaseExample<ICellLoadingExampleState> {
if (configuration === CellsLoadingConfiguration.RANDOM) {
// calculate random numbers just once instead of inside renderCell which is called during table scrolling
const randomNumbers: number[] = [];
for (let bigSpaceRock of bigSpaceRocks) {
for (let property of Object.getOwnPropertyNames(bigSpaceRocks[0])) {
randomNumbers.push(Math.random());
}
const numberOfCells = bigSpaceRocks.length * Object.getOwnPropertyNames(bigSpaceRocks[0]).length;
for (let i = 0; i < numberOfCells; i++) {
randomNumbers.push(Math.random());
}
this.setState({ randomNumbers });
}
Expand Down
1 change: 0 additions & 1 deletion packages/table/src/tableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export class TableBody extends React.Component<ITableBodyProps, {}> {
public render() {
const {
allowMultipleSelection,
cellRenderer,
columnIndexEnd,
columnIndexStart,
grid,
Expand Down

1 comment on commit 1bca7fb

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix docs compilation unused var errors (#486)

Preview: docs
Coverage: core | datetime

Please sign in to comment.