Skip to content

Commit

Permalink
feat(form): render TagsArrayInput before OptionsArray
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanwikner committed Aug 18, 2022
1 parent 443a734 commit 260e050
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export function hasOptionsList(type: ArraySchemaType): boolean {
}

export function resolveArrayInput(type: ArraySchemaType): ComponentType<any> {
if (isStringArray(type) && isTagsArray(type)) {
return TagsArrayInput
}

// Schema provides predefines list
if (hasOptionsList(type)) {
return OptionsArray
}

if (isStringArray(type) && isTagsArray(type)) {
return TagsArrayInput
}

// Special component for array of primitive values
if (isArrayOfPrimitives(type)) {
return StudioArrayOfPrimitivesInput
Expand Down

0 comments on commit 260e050

Please sign in to comment.