When I run the below code :
for (var key in props)
{
if (props.hasOwnProperty(key))
{
switch (key)
{
case "dataList":
var itemList = props[key];
if (itemList && itemList.itemCountKnown && (typeof itemList.itemCount === "number") && (itemList.itemCount > poolSize))
{
poolSize = itemList.itemCount;
}
if (itemList)
{
var item = "" ;
for (item of itemList.items)
{
if (item.text1Id == strId)
{
break;
}
focussedItem += 1;
}
}
break;
It gives the error as shown in the image. And I tried to find it online but could not find anything relevant . Kindly let me know what is the problem ???