Skip to content

Commit

Permalink
fix: Fix bug where if cde loading errors, it shows them as loading in…
Browse files Browse the repository at this point in the history
… the tab name.
  • Loading branch information
frostyfan109 committed Jul 24, 2023
1 parent 62a28b7 commit 2dbf601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/concept-modal/concept-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const ConceptModalBody = ({ result }) => {
)
const cdeTitle = (
<div style={{ display: "inline" }}>
CDEs { cdes ? `(${ Object.keys(cdes).length })` : <BouncingDots /> }
CDEs { !cdesLoading ? `(${ Object.keys(cdes ?? []).length })` : <BouncingDots /> }
</div>
)

Expand Down

0 comments on commit 2dbf601

Please sign in to comment.