Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/project-labels' into project-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Jan 23, 2024
2 parents db0bb1b + 1cb8b8c commit 9b4ae82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions 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: displayLabel && getTextColor(displayLabel.color) }}>
<LabelDisplay css={{ display: catSelectorOpen ? 'none' : 'block', color: getTextColor(displayLabel.color) }}>
<Category>{displayLabel?.name || "ERROR FINDING LABEL"}</Category>
{!object.locked && <Confidence>{conf}%</Confidence>}
</LabelDisplay>
Expand Down
2 changes: 2 additions & 0 deletions src/features/projects/ProjectAndViewNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
selectRouterLocation,
fetchImageContext,
preFocusImageStart,
clearImages,
} from '../images/imagesSlice.js';
import {
NavigationMenu,
Expand Down Expand Up @@ -207,6 +208,7 @@ const ProjectAndViewNav = () => {
if (projId === selectedProj._id) return;
const project = projects.find((p) => p._id === projId);
const viewId = project.views.find((v) => v.name === 'All images')._id;
dispatch(clearImages());
dispatch(push(`/app/${projId}/${viewId}`));
};

Expand Down

0 comments on commit 9b4ae82

Please sign in to comment.