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: {
|
walk: {
|
||||||
const { inputOptionsFromValidation } = attribute.annotations;
|
const { inputOptionsFromValidation } = attribute.annotations;
|
||||||
|
|
||||||
assert(typeof inputOptionsFromValidation === "string");
|
|
||||||
|
|
||||||
if (inputOptionsFromValidation === undefined) {
|
if (inputOptionsFromValidation === undefined) {
|
||||||
break walk;
|
break walk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(typeof inputOptionsFromValidation === "string");
|
||||||
|
|
||||||
const validator = (attribute.validators as Record<string, { options?: string[] }>)[inputOptionsFromValidation];
|
const validator = (attribute.validators as Record<string, { options?: string[] }>)[inputOptionsFromValidation];
|
||||||
|
|
||||||
if (validator === undefined) {
|
if (validator === undefined) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user