caluma
caluma copied to clipboard
static_content in staticQuestion is optional
The backend doesn't accept an empty string as Static content
. On removal of this content, it needs to be set to null
.
Steps to reproduce:
- Save a question with
Static content
- Remove the
Static content
- Saving will now fail because the frontend sets
Static content
to""
Seems to be a problem with the backend, setting it to null
or even " "
still returns the blank error
The backend should accept an empty string as value, because thats what an empty textarea represents
See this comment https://github.com/projectcaluma/caluma/pull/1577#issuecomment-959420192