Skip to content
Snippets Groups Projects
Unverified Commit 21d54f27 authored by Johann150's avatar Johann150 Committed by GitHub
Browse files

fix: validate text is not empty

fix #8747
parent abc8998b
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ export const paramDef = {
{
// (re)note with text, files and poll are optional
properties: {
text: { type: 'string', maxLength: MAX_NOTE_TEXT_LENGTH, nullable: false },
text: { type: 'string', minLength: 1, maxLength: MAX_NOTE_TEXT_LENGTH, nullable: false },
},
required: ['text'],
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment