mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 18:00:26 -06:00
fix: Page break on Convert to Multi Select (#1383)
Co-authored-by: shruti satsangi <shrutisatsangi@shrutis-MacBook-Air.local>
This commit is contained in:
@@ -35,7 +35,7 @@ export default function MultipleChoiceSingleQuestion({
|
||||
|
||||
const [otherSelected, setOtherSelected] = useState(
|
||||
!!value &&
|
||||
(value as string[]).some((item) => {
|
||||
((Array.isArray(value) ? value : [value]) as string[]).some((item) => {
|
||||
return getChoicesWithoutOtherLabels().includes(item) === false;
|
||||
})
|
||||
); // check if the value contains any string which is not in `choicesWithoutOther`, if it is there, it must be other value which make the initial value true
|
||||
|
||||
Reference in New Issue
Block a user