We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce9276f + 03c4fc1 commit 12e1e86Copy full SHA for 12e1e86
frontend/src/app/util.ts
@@ -7,7 +7,7 @@ import Property from "../model/Property";
7
export function asArray<T>(obj: T | T[]): T[] {
8
if (Array.isArray(obj)) {
9
return obj;
10
- } else if (obj) {
+ } else if (obj !== undefined && obj !== null) {
11
return [obj];
12
}
13
return [];
frontend/src/components/ClassExpression.tsx
@@ -303,7 +303,10 @@ export default function ClassExpression({
303
);
304
305
306
- const hasValue = asArray(expr["http://www.w3.org/2002/07/owl#hasValue"])[0];
+ let hasValue = asArray(expr["http://www.w3.org/2002/07/owl#hasValue"])[0];
307
+ if (typeof hasValue === "number") {
308
+ hasValue = hasValue.toString();
309
+ }
310
if (hasValue) {
311
return (
312
<span>
0 commit comments