Skip to content

Commit

Permalink
Fixes #4751 - Relation fields are not correctly sorted in mobile view…
Browse files Browse the repository at this point in the history
… (e.g. owner field).
  • Loading branch information
dominikklein committed Aug 11, 2023
1 parent a5e7591 commit d26b97a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -83,6 +83,7 @@ describe('FieldResolverSelect', () => {
clearable: false,
options: [],
belongsToObjectField: 'group',
sorting: 'label',
},
relation: {
type: 'Group',
Expand Down
Expand Up @@ -36,6 +36,8 @@ export class FieldResolverSelect extends FieldResolver {
props.belongsToObjectField = camelize(
(this.attributeConfig.belongs_to as string) || '',
)

props.sorting = 'label'
} else if (this.attributeConfig.options) {
props.options = this.mappedOptions()
}
Expand Down

0 comments on commit d26b97a

Please sign in to comment.