Car wont idle just dies

hi everyone
finally got my 94 xj12 to start however it will not idle keeps dying think I need and idle switch but cant find one any ideas out there?

Check the throttle potentiometer. On the central throttle capstan.
If the wiper is intermittent, it can cause stalling, particularly when coming back onto idle.
It changed from ‘92 and 96’
Not sure where yours fits.
Quick search below, shows about $200 ea !! Ouch.