Skip to content

Commit

Permalink
Fix multiselect field type not propagating common config options (#8007)
Browse files Browse the repository at this point in the history
Co-authored-by: Marek Rybczynski <marek.rybczyn@gmail.com>
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 17, 2022
1 parent 0306141 commit 65c6ee3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-ghosts-jog.md
@@ -0,0 +1,5 @@
---
'@keystone-6/core': patch
---

Fixes the multiselect field type not using the provided `label`, `access`, `graphql`, `isFilterable` or `isOrderable` configuration options
3 changes: 1 addition & 2 deletions packages/core/src/fields/types/multiselect/index.ts
Expand Up @@ -52,7 +52,6 @@ const MIN_INT = -2147483648;

export const multiselect =
<ListTypeInfo extends BaseListTypeInfo>({
ui,
defaultValue = [],
...config
}: MultiselectFieldConfig<ListTypeInfo>): FieldTypeFunc<ListTypeInfo> =>
Expand Down Expand Up @@ -107,7 +106,7 @@ export const multiselect =
return jsonFieldTypePolyfilledForSQLite(
meta.provider,
{
ui,
...config,
hooks: {
...config.hooks,
async validateInput(args) {
Expand Down

0 comments on commit 65c6ee3

Please sign in to comment.