Admin app fails to update partners
if existing document is malformed
#8027
Labels
Help wanted
Good for first time contributions
Type: Bug
Fix something that isn't working as intended
Describe the bug
A malformed
partners
doc will block the user from updating partners from the admin app.To Reproduce
Steps to reproduce the behavior:
partners.json
document in your config. Set the contents of this document to be{}
. runcht upload-partners
.There was an error saving your settings, please try again.
.Expected behavior
The UI should inform the user that the existing document is malformed.
Even when the document is malformed, the user should have the possibility to "fix" it by editing from the Admin UI.
Logs
When loading the partners page:
When saving:
Environment
Additional context
Form post
The text was updated successfully, but these errors were encountered: