It’s a fine line between abandoning the child when they need you and teaching them that they can get attention or you to do what they want by going bonkers.
Generally – make sure they are ok (ie: nappy, wind, feed, thirst, not ill etc). I think babies are fairly tough and after the first one, you learn as a parent that they are not super fragile/needy. The only way we could get ours to sleep right through was to go through 3 nights of leaving them going bonkers and after that they learnt we wouldn’t come running and have been generally ok ever since. A dummy can help, but then you’ll have to go through dummy withdrawal at some point later.