parse-community / parse-dashboard

A dashboard for managing Parse Server
https://parseplatform.org
Other
3.75k stars 1.39k forks source link

Info panel not showing when some apps miss `infoPanel` config #2623

Open mtrezza opened 2 hours ago

mtrezza commented 2 hours ago

New Issue Checklist

Issue Description

Info panel not showing when some apps miss infoPanel config, for example when dashboard config contains 2 apps, but only of the them has a infoPanel set.

Steps to reproduce

parse-dashboard-config.json:

{
  "apps": [
    {
      "serverURL": "https://app1.example.com",
      "appId": "appId1",
      "masterKey": "masterKey",
      "appName": "app1",
      "infoPanel": [
        {
          "title": "User Details",
          "classes": ["_User"],
          "cloudCodeFunction": "user"
        }
      ]
    },
    {
      "serverURL": "https://app2.example.com",
      "appId": "appId2",
      "masterKey": "masterKey",
      "appName": "app2"
    }
  ]
}

Actual Outcome

Info panel should does not show for app1 or app2.

Expected Outcome

Info panel should show for app1 and not for app2.

Environment

Dashboard

parse-github-assistant[bot] commented 2 hours ago

Thanks for opening this issue!