Move a wrong assertion down two lines
This commit is contained in:
parent
b893eee086
commit
53a18c462a
@ -702,12 +702,12 @@ function SelectTag(props: InputFiledByTypeProps) {
|
||||
walk: {
|
||||
const { inputOptionsFromValidation } = attribute.annotations;
|
||||
|
||||
assert(typeof inputOptionsFromValidation === "string");
|
||||
|
||||
if (inputOptionsFromValidation === undefined) {
|
||||
break walk;
|
||||
}
|
||||
|
||||
assert(typeof inputOptionsFromValidation === "string");
|
||||
|
||||
const validator = (attribute.validators as Record<string, { options?: string[] }>)[inputOptionsFromValidation];
|
||||
|
||||
if (validator === undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user