Format widget dynamic select input after Mantine v9 fixes.
This commit is contained in:
1 file changed
+1
-3
@@ -56,9 +56,7 @@ export const WidgetDynamicSelectInput = ({ property, kind, options }: CommonWidg
|
|||||||
.concat(
|
.concat(
|
||||||
currentOption !== null &&
|
currentOption !== null &&
|
||||||
!selectOptions.some((option) =>
|
!selectOptions.some((option) =>
|
||||||
typeof option === "string"
|
typeof option === "string" ? option === currentOption.value : option.value === currentOption.value,
|
||||||
? option === currentOption.value
|
|
||||||
: option.value === currentOption.value,
|
|
||||||
)
|
)
|
||||||
? {
|
? {
|
||||||
value: currentOption.value,
|
value: currentOption.value,
|
||||||
|
|||||||
Reference in new issue
Block a user