{selectedValue.map(selectValue => {
const option = uniqueOptionsByValue[selectValue];
return (
diff --git a/packages/core/src/widgets/relation/schema.ts b/packages/core/src/widgets/relation/schema.ts
index dc8f3c70..eaf5d84a 100644
--- a/packages/core/src/widgets/relation/schema.ts
+++ b/packages/core/src/widgets/relation/schema.ts
@@ -1,14 +1,5 @@
export default {
properties: {
- collection: { type: 'string' },
- value_field: { type: 'string' },
- search_fields: { type: 'array', minItems: 1, items: { type: 'string' } },
- file: { type: 'string' },
- multiple: { type: 'boolean' },
- min: { type: 'integer' },
- max: { type: 'integer' },
- display_fields: { type: 'array', minItems: 1, items: { type: 'string' } },
- options_length: { type: 'integer' },
default: {
oneOf: [
{ type: 'string' },
@@ -20,6 +11,15 @@ export default {
},
],
},
+ collection: { type: 'string' },
+ value_field: { type: 'string' },
+ search_fields: { type: 'array', minItems: 1, items: { type: 'string' } },
+ file: { type: 'string' },
+ display_fields: { type: 'array', minItems: 1, items: { type: 'string' } },
+ multiple: { type: 'boolean' },
+ min: { type: 'integer' },
+ max: { type: 'integer' },
+ options_length: { type: 'integer' },
},
oneOf: [
{
diff --git a/packages/core/src/widgets/select/SelectControl.tsx b/packages/core/src/widgets/select/SelectControl.tsx
index 38d2c148..d5d357f5 100644
--- a/packages/core/src/widgets/select/SelectControl.tsx
+++ b/packages/core/src/widgets/select/SelectControl.tsx
@@ -126,7 +126,7 @@ const SelectControl: FC
+
{stringValue.map(selectValue => {
const label = optionsByValue[selectValue]?.label ?? selectValue;
return (
diff --git a/packages/core/src/widgets/select/schema.ts b/packages/core/src/widgets/select/schema.ts
index 9f012fca..e3bc1207 100644
--- a/packages/core/src/widgets/select/schema.ts
+++ b/packages/core/src/widgets/select/schema.ts
@@ -1,8 +1,5 @@
export default {
properties: {
- multiple: { type: 'boolean' },
- min: { type: 'integer' },
- max: { type: 'integer' },
default: {
oneOf: [
{ type: 'string' },
@@ -32,6 +29,9 @@ export default {
],
},
},
+ multiple: { type: 'boolean' },
+ min: { type: 'integer' },
+ max: { type: 'integer' },
},
required: ['options'],
};
diff --git a/yarn.lock b/yarn.lock
index ff46e8f1..f189cca1 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8470,7 +8470,7 @@ escape-goat@^3.0.0:
resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-3.0.0.tgz#e8b5fb658553fe8a3c4959c316c6ebb8c842b19c"
integrity sha512-w3PwNZJwRxlp47QGzhuEBldEqVHHhh8/tIPcl6ecf2Bou99cdAt0knihBV0Ecc7CGxYduXVBDheH1K2oADRlvw==
-escape-html@1.0.3, escape-html@^1.0.3, escape-html@~1.0.3:
+escape-html@1.0.3, escape-html@~1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
@@ -11905,11 +11905,6 @@ jotai@^1.7.2:
resolved "https://registry.yarnpkg.com/jotai/-/jotai-1.13.1.tgz#20cc46454cbb39096b12fddfa635b873b3668236"
integrity sha512-RUmH1S4vLsG3V6fbGlKzGJnLrDcC/HNb5gH2AeA9DzuJknoVxSGvvg8OBB7lke+gDc4oXmdVsaKn/xDUhWZ0vw==
-jquery@^3.6.0:
- version "3.6.4"
- resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.4.tgz#ba065c188142100be4833699852bf7c24dc0252f"
- integrity sha512-v28EW9DWDFpzcD9O5iyJXg3R3+q+mET5JhnjJzQUZMHOv67bpSIHq81GEYpPNZHG+XXHsfSme3nxp/hndKEcsQ==
-
js-base64@3.7.5:
version "3.7.5"
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.5.tgz#21e24cf6b886f76d6f5f165bfcd69cc55b9e3fca"
@@ -18605,19 +18600,6 @@ update-browserslist-db@^1.0.10:
escalade "^3.1.1"
picocolors "^1.0.0"
-uploadcare-widget-tab-effects@1.6.0:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/uploadcare-widget-tab-effects/-/uploadcare-widget-tab-effects-1.6.0.tgz#6de4664b0b2fa47100b5a3e0afc1d41b35b8f429"
- integrity sha512-RoWxeZnk41qm8Mo19R8Zvshsuqetc4y+gFtxA89x+noLCSFItuviGZJBf7rcX3ocwn+aFNKbXp44dlaVDoYRIA==
-
-uploadcare-widget@3.21.0:
- version "3.21.0"
- resolved "https://registry.yarnpkg.com/uploadcare-widget/-/uploadcare-widget-3.21.0.tgz#db67e7f97d257c3ab8da65328121502f8ab6b1f8"
- integrity sha512-9C/WLwK3Anx+76rDzg/pe1vBv41j4HapgxfbyVLS+3oolB3bd9NvURAkvfyEif8QUnt7MwK2Ubw3f7UP/a3v9w==
- dependencies:
- escape-html "^1.0.3"
- jquery "^3.6.0"
-
uri-js@^4.2.2:
version "4.4.1"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"