Removes types extraction in parse-need -> is handled in content now
@@ -21,7 +21,6 @@ export function parseNeed(jsonldNeed, isOwned) {
uri: jsonldNeedImm.get("@id"),
identiconSvg: generateIdenticon(jsonldNeedImm),
nodeUri: jsonldNeedImm.getIn(["won:hasWonNode", "@id"]),
- types: extractTypes(jsonldNeedImm),
state: extractState(jsonldNeedImm),
matchingContexts: extractMatchingContext(jsonldNeedImm),
heldBy: won.parseFrom(jsonldNeedImm, ["won:heldBy"], "xsd:ID"),
@@ -132,18 +131,6 @@ function generateIdenticon(needJsonLd) {
return idc.toString();
}
-function extractTypes(needJsonLd) {
- const types = (rawTypes => {
- if (Immutable.List.isList(rawTypes)) {
- return Immutable.Set(rawTypes);
- } else {
- return Immutable.Set([rawTypes]);
- }
- })(needJsonLd.get("@type"));
-
- return types;
-}
-
function extractCreationDate(needJsonLd) {
const creationDate =
needJsonLd.get("dct:created") ||
