mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 12:38:21 -05:00
Two issues were occurring with the admin API keys page: 1. Clicking "Edit" on an API key in the list failed to navigate properly because the full apiKey object was passed to the route instead of just the ID. 2. Viewing an API key with scopes would error when a scope's allowed_parameters was null/undefined, as the template tried to call `get` on a nullish value. **BEFORE** https://github.com/user-attachments/assets/a1c3a54f-7d26-4498-95e3-fd734b2e9a61 **AFTER** https://github.com/user-attachments/assets/d560a189-566f-4f85-a76a-266b9ac95bed