Skip to content

Commit

Permalink
Fix bounding box color for new objects
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Jan 21, 2024
1 parent 7f2ab28 commit 250da96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/loupe/BoundingBoxLabel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const BoundingBoxLabel = forwardRef(({
handleCategorySelectorBlur={handleCategorySelectorBlur}
menuPlacement='bottom'
/>
<LabelDisplay css={{ display: catSelectorOpen ? 'none' : 'block', color: getTextColor(displayLabel.color) }}>
<LabelDisplay css={{ display: catSelectorOpen ? 'none' : 'block', color: displayLabel && getTextColor(displayLabel.color) }}>
<Category>{displayLabel?.name || "ERROR FINDING LABEL"}</Category>
{!object.locked && <Confidence>{conf}%</Confidence>}
</LabelDisplay>
Expand Down

0 comments on commit 250da96

Please sign in to comment.