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

Commit 7584ad2

Browse files
committed
fix: don't show empty scoring options table
1 parent ddbf0f0 commit 7584ad2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Pdf/QuestionView.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ export class QuestionView extends React.Component<QuestionViewProps, {}> {
7777
const scoringOptions =
7878
data &&
7979
data.sampleItemScoring &&
80-
data.sampleItemScoring.scoringOptions ? (
80+
data.sampleItemScoring.scoringOptions &&
81+
data.sampleItemScoring.scoringOptions.length > 0 ? (
8182
<ScoringOptions options={data.sampleItemScoring.scoringOptions} />
8283
) : (
8384
undefined

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ export { RubricEntry } from "./Rubric/RubricEntry";
314314
export { SampleResponse } from "./Rubric/SampleResponse";
315315
export { RubricTable, RubricTableProps } from "./Rubric/RubricTable";
316316
export { RubricModal, RubricModalProps } from "./Rubric/RubricModal";
317+
export { ScoringOptions } from "./Rubric/ScoringOptionsTable";
317318

318319
//
319320
// Select

0 commit comments

Comments
 (0)