getDataByPath
on empty array fields return 0
instead of []
#10712
Labels
getDataByPath
on empty array fields return 0
instead of []
#10712
Describe the Bug
Since 3.18.0,
getDataByPath
on empty array fields return0
instead of[]
.Link to the code that reproduces this issue
https://github.com/tyteen4a03/payload-getdatabypath-bug
Reproduction Steps
console.log()
logs the result as 0.[]
which is the correct behavior.Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: