Merge pull request #397 from nextcloud/fix/empty_questions

Fix remove empty questions on submit
This commit is contained in:
Jan C. Borchardt 2020-05-22 17:41:11 +02:00 committed by GitHub
commit 36f9628fb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ export default {
validQuestions() {
return this.form.questions.filter(question => {
// All questions must have a valid title
if (question.text && question.text.trim() === '') {
if (question.text?.trim() === '') {
return false
}