Choking on gripe water

Lu
This morning I gave my baby some gripe water. She'd only had about 2ml from a syringe, given in small amounts when she started to choke. I put her down my leg and patted her back and she was sick on the floor. It did seem to work last night but now I'm scared to give her any more. Did I do something wrong? She does have silent reflux and takes ranitidine but hadn't had her morning dose when this happened