mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-23 04:23:35 +00:00
Fix bug
This commit is contained in:
@@ -15,6 +15,11 @@ class ValidatorCore implements Validator {
|
||||
value: any;
|
||||
error: string;
|
||||
|
||||
constructor() {
|
||||
this.value = null;
|
||||
this.error = null;
|
||||
}
|
||||
|
||||
required() {
|
||||
if (this.error === null && this.value === null) {
|
||||
this.error = 'required';
|
||||
|
||||
Reference in New Issue
Block a user