Signalen / frontend

Frontend for Signalen, an application that helps cities manage and prioritize nuisance reports.
https://signalen.org
Mozilla Public License 2.0
10 stars 4 forks source link

Remove hardcoded reference to afval/asbest-accu in frontend on standard texts page #80

Closed bartjkdp closed 3 years ago

bartjkdp commented 3 years ago

Describe the bug When editing the default texts, the frontend by default selects the afval/asbest-accu category. This results in an error on instances where this category does not exist:

https://github.com/Amsterdam/signals-frontend/blob/d193eb7580c74caf8f1712d381178ebe741673f5/src/signals/incident-management/containers/DefaultTextsAdmin/components/SelectForm/index.js#L14-L19

To Reproduce Steps to reproduce the behavior:

  1. Use a category
  2. Go to: /manage/standaard/teksten
  3. The error "De opgevraagde gegevens konden niet gevonden worden" is shown

Expected behavior The system shows no category by default or retrieves the first subcategory in the list

Screenshots

image

boris-arkenaar commented 3 years ago

I've taken a quick look at it, hoping it would be an easy fix. But redux and especially the form make it overly complicated and haven't been able to fix it yet. Moving on to higher priority story for now.