Skip to content

Commit

Permalink
fix(summary): Random type err
Browse files Browse the repository at this point in the history
  • Loading branch information
Veikkosuhonen committed Jan 4, 2024
1 parent 6dfbe9b commit 6e73fb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/pages/CourseSummary/SummaryV2/SummaryRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ const RowHeader = ({ openable = false, isOpen = false, handleOpenRow, label, lin
)

const TagSummaryRow = ({ tag, questions, organisationId, startDate, endDate }) => {
const { i18n, t } = useTranslation()
const [isTransitioning, startTransition] = React.useTransition()
const [isOpen, setIsOpen] = useAccordionState(tag.id, true)
const [nextIsOpen, setNextIsOpen] = React.useState(isOpen)
Expand Down Expand Up @@ -471,7 +470,7 @@ export const OrganisationSummaryRow = ({

const indentLineColor = useRandomColor(initialOrganisation?.code ?? '')

const tagsEnabled = TAGS_ENABLED.includes(initialOrganisation.code)
const tagsEnabled = TAGS_ENABLED.includes(initialOrganisation?.code)

if (!alwaysOpen && !initialOrganisation) {
return <Loader />
Expand Down

0 comments on commit 6e73fb7

Please sign in to comment.