Nested Metadata Object not working for nesting depth > 2

TIDO version: 3.2.2 (locally with npm run serve:dev)

Tested on develop branch.


I have a manifest that has nested metadata. Here's what it looks like (MWE):

{
  "@context": "https://gitlab.gwdg.de/subugoe/textapi/specs/-/raw/main/jsonld/manifest.jsonld",
  "textapi": "1.1.0",
  "id": "http://localhost:8001/api/eupt/KTU__1.14/manifest.json",
  "label": "KTU 1.14",
  "sequence": [
    {
      "@context": "https://gitlab.gwdg.de/subugoe/textapi/specs/-/raw/main/jsonld/sequence.jsonld",
      "id": "http://localhost:8001/api/eupt/KTU__1.14/1/full.json",
      "type": "item",
      "label": "Volltext"
    }
  ],
  "support": [
    {
      "@context": "https://gitlab.gwdg.de/subugoe/textapi/specs/-/raw/main/jsonld/support.jsonld",
      "type": "css",
      "mime": "text/css",
      "url": "http://localhost:8001/api/eupt/css/styles.css"
    }
  ],
  "license": [
    {}
  ],
  "metadata": [
    {
      "key": "Bibliographie",
      "metadata": [
        {
          "key": "Fotos",
          "metadata": [
            {
              "key": 1,
              "value": "Virolleaud 1936, pl. III-IV"
            },
            {
              "key": 2,
              "value": "CTA, pl. XX-XXI"
            },
            {
              "key": 3,
              "value": "Schweich, pl. XXXVII"
            },
            {
              "key": 4,
              "value": "MOu II, CD:03 RS 2[003]+ i"
            },
            {
              "key": 5,
              "value": "ColUF"
            }
          ]
        }
      ]
    }
  ]
}

As you can see, we have a nesting depth of 3 (technically, the TextAPI specs allows you to nest infinitely).

What I expected: I expected the viewer to show all levels of nesting in the Metadata Panel

What happened:

Nothing is displayed at all.

image

Also, I cannot switch to the content overview, so it seems like the manifest above causes TIDO to crash. (?)

Edited by Michelle Weidling