mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 02:23:19 -04:00
Custom broadcasts created directly via the API app won't have area IDs since [1], where we started to distinguish between "names" (all broadcasts have these) and IDs (for broadcasts created in this app). We forgot to propagate the distinction into the code here. This code fixes the bug for all broadcasts created after [1]. Any custom broadcasts created before [1] will have their "ids" field set instead of "names" so we won't show anything for them. This seems reasonable as we don't support custom broadcasts yet. [1]: https://github.com/alphagov/notifications-api/pull/3312/commits/023a06d5fb4c20e6bf5a1c9e65b473cb376b2b6b
5.2 KiB
5.2 KiB