Skip to content

Displaying [object Object] as a string instead of nothing when a field is empty. #186

@PercheEtienne

Description

@PercheEtienne

Hi all,

I just encountered a bug where the "[object Object]" is displayed as a string for the AI Tool Used section.

Screenshot 2024-08-21 at 2 00 33 PM Screenshot 2024-08-21 at 1 59 52 PM

I analyzed both these manifests and the library -> https://github.com/contentauth/c2pa-js/blob/main/packages/c2pa/src/selectors/selectGenerativeInfo.ts#L143-L156

Screenshot 2024-08-21 at 2 13 47 PM Screenshot 2024-08-21 at 2 13 28 PM

in both my images, there is no 'softwareAgent' inside the c2pa.created action. So I assume that as this field seems not mandatory, it should not display anything for the AI Tool Used Section?

Thanks,
Etienne.

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