Skip to content

Commit

Permalink
Fixed GWAS trait "unknown class expression" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrietteharmse committed Aug 1, 2024
1 parent fc932cf commit 9cc3d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ClassExpression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default function ClassExpression({
const onProperty = expr["http://www.w3.org/2002/07/owl#onProperty"];
// let onProperties = expr['http://www.w3.org/2002/07/owl#onProperties'])

if (!onProperty) {
if (!onProperty && typeof expr !== "boolean") {
return (
<span className="text-embl-red-default italic">
unknown class expression
Expand Down Expand Up @@ -432,7 +432,7 @@ export default function ClassExpression({
}
}


console.log("unknown class expression - fall through")
return (
<span className="text-embl-red-default italic">
unknown class expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function EntityAnnotationsSection({
/>
);
} else {
if (typeof value.value !== "string") {
if (typeof value.value !== "string" && typeof value.value !== "boolean") {
return (
<ClassExpression
ontologyId={entity.getOntologyId()}
Expand Down

0 comments on commit 9cc3d96

Please sign in to comment.