🔎 Search Terms
any
🕗 Version & Regression Information
- This is a crash
- This changed between versions 4.9.5 and 4.9.5_____
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
No response
💻 Code
i had use confition like item.data && typeof item.data === 'object' , but ts error still exist
<div
options={
(item.data && typeof item.data === 'object'
? Object.keys(item.data).map((key) => ({
label: key,
value: item.data[key],
}))
: null)
}
</div>
🙁 Actual behavior
<div
options={
(item.data && typeof item.data === 'object'
? Object.keys(item.data).map((key) => ({
label: key,
value: item.data[key],
}))
: null)
}
</div>
🙂 Expected behavior
Additional information about the issue
No response
🔎 Search Terms
any
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
i had use confition like
item.data && typeof item.data === 'object', but ts error still exist🙁 Actual behavior
🙂 Expected behavior
Additional information about the issue
No response