Skip to content

Issue displaying languages and social accounts #199

@timea-solid

Description

@timea-solid

We have a few cases where a profile contains an ordered list of known languages. In this case we have an error like:
Uncaught (in promise) TypeError: languagesInStore.map is not a function
presentCV CVPresenter.js:94
ProfileView ProfileView.js:41
render index.js:45
promise callbackrender index.js:44
propertyTable manager.js:690
promise callback
propertyTable manager.js:684
render manager.js:1659

This occurs is in the profile we have the following turtle:

:me schema:knowsLanguage :b5591_n3-4373, :b5591_n3-4374 ;

:b5591_n3-4373 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> :id1621179872094;
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> :b5591_n3-4374.
:b5591_n3-4374 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> :id1621182189397;
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> :b5591_n3-000.

:id1621179872094 solid:publicId l:fr.

:id1621182189397 solid:publicId l:de.

But we still have profiles that also contain:

:me  schema:knowsLanguage ( :id1621182189390 );
:id1621182189390 solid:publicId l:es.

So we need to handle both cases.
Attention, this can also occur for social media accounts. We need to improve both code places.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions