sirixdb/sirix-svelte-frontend

Bug: Consecutive Diffs

JohannesLichtenberger opened this issue · 1 comments

I've attached a database and two resources (only the resource business-service-providers.json is important).

When I compare revision 1 and 3 the diffs have a false depth (+1). Revision 3, the relevant part looks as follows:

          {
            "name": "offset",
            "in": "query",
            "description": "The offset parameter defines the offset from the first result you want to fetch. Unless specified the API returns 10 results at a time.",
            "required": false,
            "type": "string",
            "format": "string"
          },
          {
            "name": "keyword"
          },
          {
            "name": "keyword"
          }

In the frontend it's displayed as:

Screenshot from 2020-10-02 23-07-27

json-db.zip

Fixed the indentation in Wrapper.svelte (path.filter((val) => val !== null).length instead of adding the - 1.