You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs because getControlItem.options is being accessed with .map() directly, without validating if it is an array. If getControlItem.options is undefined, null, or not an array, a TypeError: getControlItem.options.map is not a function will be thrown.
The error occurs because getControlItem.options is being accessed with .map() directly, without validating if it is an array. If getControlItem.options is undefined, null, or not an array, a TypeError: getControlItem.options.map is not a function will be thrown.
fix: {getControlItem.options && Array.isArray(getControlItem.options) && getControlItem.options.length > 0
? getControlItem.options.map((optionItem) => (
{optionItem.label}
))
: null}
The text was updated successfully, but these errors were encountered: