File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,9 +122,9 @@ export default defineComponent({
122122 editingId .value = - 1
123123 }
124124 const setAuthorField = (field : keyof AuthorType , value : string ) => {
125- const author = { ... authors .value [editingId .value ] }
126- author [field ] = value === ' ' ? undefined : value
127- authors .value [editingId .value ] = author
125+ const newAuthor = { ... authors .value [editingId .value ] }
126+ newAuthor [field ] = value === ' ' ? undefined : value
127+ authors .value [editingId .value ] = newAuthor
128128 setAuthors (authors .value )
129129 }
130130 const moveAuthorUp = (index : number ) => {
Original file line number Diff line number Diff line change @@ -148,6 +148,15 @@ export const keywordsQueries: ErrorQuery[] = [{
148148} ]
149149
150150export const messageQueries : ErrorQuery [ ] = [ {
151+ find : {
152+ instancePath : '' ,
153+ message : 'must have required property \'message\'' ,
154+ schemaPath : '#/required'
155+ } ,
156+ replace : {
157+ message : '\'message\' is a required property'
158+ }
159+ } , {
151160 find : {
152161 message : 'must NOT have fewer than 1 characters' ,
153162 schemaPath : '#/properties/message/minLength'
@@ -200,6 +209,15 @@ export const repositoryQueries: ErrorQuery[] = [{
200209} ]
201210
202211export const titleQueries : ErrorQuery [ ] = [ {
212+ find : {
213+ instancePath : '' ,
214+ message : 'must have required property \'title\'' ,
215+ schemaPath : '#/required'
216+ } ,
217+ replace : {
218+ message : '\'title\' is a required property'
219+ }
220+ } , {
203221 find : {
204222 message : 'must NOT have fewer than 1 characters' ,
205223 schemaPath : '#/properties/title/minLength'
You can’t perform that action at this time.
0 commit comments