This commit is contained in:
ritz078 committed 2020-06-05 01:34:44 +05:30
1 parent 08cdd0e7c3
commit df694e1acb
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { normalize } from "jsonld";
export default function() {
const transformer = useCallback(async ({ value }) => {
return (await normalize(JSON.parse(value))) as Promise<string>;
return normalize(JSON.parse(value));
}, []);
return (
+2 -2
View File
@@ -5,9 +5,9 @@ import { toRDF } from "jsonld";
export default function() {
const transformer = useCallback(async ({ value }) => {
return toRDF(JSON.parse(value), {
return (toRDF(JSON.parse(value), {
format: "application/n-quads"
}) as Promise<string>;
}) as unknown) as Promise<string>;
}, []);
return (