File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/views/administration/accessmanagement Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default {
43
43
},
44
44
data () {
45
45
return {
46
- comment: null ,
46
+ comment: ' ' ,
47
47
};
48
48
},
49
49
mounted () {
@@ -71,7 +71,7 @@ export default {
71
71
});
72
72
},
73
73
resetValues : function () {
74
- this .comment = null ;
74
+ this .comment = ' ' ;
75
75
},
76
76
},
77
77
};
Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ export default {
228
228
apiKeysToDict : function (apiKeys ) {
229
229
const dict = {};
230
230
apiKeys .forEach ((item ) => {
231
+ item .comment = item .comment ? item .comment : ' ' ;
231
232
dict[item .publicId ] = item;
232
233
});
233
234
return dict;
@@ -301,6 +302,7 @@ export default {
301
302
if (! this .apiKeys ) {
302
303
this .apiKeys = {};
303
304
}
305
+ response .data .comment = ' ' ;
304
306
this .$set (
305
307
this .apiKeys ,
306
308
response .data .publicId ,
@@ -324,6 +326,9 @@ export default {
324
326
.post (url)
325
327
.then ((response ) => {
326
328
this .$delete (this .apiKeys , apiKey .publicId );
329
+ response .data .comment = response .data .comment
330
+ ? response .data .comment
331
+ : ' ' ;
327
332
this .$set (
328
333
this .apiKeys ,
329
334
response .data .publicId ,
You can’t perform that action at this time.
0 commit comments