Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit f5bb873

Browse files
authored
fix(gui): wrong nesting of HTML elements (#941)
1 parent 53b2b40 commit f5bb873

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

api-editor/gui/src/features/annotations/AnnotationView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ const AnnotationTag: React.FC<AnnotationTagProps> = function ({
327327
const currentUserAction = useAppSelector(selectCurrentUserAction);
328328

329329
const reviewer = (annotation.reviewers ?? [])[0];
330-
const reviewResult = annotation.reviewResult ?? ReviewResult.Correct;
330+
const reviewResult = annotation.reviewResult;
331331
const isReviewed = reviewer !== undefined;
332332

333333
const authors = annotation.authors ?? [];
@@ -389,7 +389,7 @@ const AnnotationTag: React.FC<AnnotationTagProps> = function ({
389389
)}
390390
</Button>
391391
</Tooltip>
392-
{reviewResult === ReviewResult.Correct && (
392+
{(reviewResult === ReviewResult.Correct || (isReviewed && !reviewResult)) && (
393393
<Tooltip label={`Marked as correct by ${reviewer}. Click to undo.`}>
394394
<Button
395395
size="sm"

api-editor/gui/src/features/filter/FilterInput.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ const InvalidFilterToken: React.FC<InvalidFilterTokenProps> = function ({ token
8484
return (
8585
<ListItem>
8686
<ChakraText>
87-
<ChakraText display="inline" fontWeight="bold">
87+
<Box as="span" fontWeight="bold">
8888
{token}
89-
</ChakraText>
89+
</Box>
9090
{closestDistance <= 3 && (
9191
<>
9292
{'. '}
9393
Did you mean{' '}
94-
<ChakraText display="inline" textDecoration="underline" cursor="pointer" onClick={onClick}>
94+
<Box as="span" textDecoration="underline" cursor="pointer" onClick={onClick}>
9595
{closestAlternative}
96-
</ChakraText>
96+
</Box>
9797
?
9898
</>
9999
)}

0 commit comments

Comments
 (0)