Chief, the only condition for an infield fly is that an infielder can make a play on the ball without above average effort.
So, by rule, they made the right call.
I wouldn't make it... But they are right by the letter of the book.
If the fielder had to run more than about 40 ft, it was a bad call. (The maximum distance someone would have to travel to catch a ball not on the outfield grass and in the field of play would be roughly 40 ft, give or take)