Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
fix(rubric): add logic to handle null samples
Browse files Browse the repository at this point in the history
  • Loading branch information
tnoelcke committed Oct 16, 2018
1 parent 6594791 commit 94a56a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Rubric/RubricTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export class RubricTable extends React.Component<RubricTableProps, {}> {
};
});
}

const showSample = rubric.samples.length !== 0;
const showSample = rubric.samples ? rubric.samples.length !== 0 : false;

const leftAlign: React.CSSProperties = {
textAlign: "left"
Expand Down

0 comments on commit 94a56a2

Please sign in to comment.