Dodge Ram Cold Stalling

Engine will run with foot on throttle, but stalls at idle. Must warm up to run, then is ok. Have been told that it’s probably the TPS (throttle position sensor). Any advise?