Glad she's more comfortable now.
Was she breastfeeding normally before it happened? Sometimes babies can get tummy ache if they don't have a full length feed.
The first minutes of a feed (fore milk) are higher in natural sugars, like a snack. After a little while the richer milk comes through (hind milk) to fully nourish and satisfy them.
If you got interrupted in feeding, or swapped breasts during a feed, she might have gotten a higher sugar feed, which can lead to wind and loose stools.
Some mothers say that foods that they eat themselves can cause baby colic through the milk, but I don't think that's been proven.
If it happens again, try to settle down together for a long feed and then maybe walk her round a bit. She isn't crying to annoy you or control you, so give her what works to make her better.
Signs that you need to see Doctor would be high temperature, excessive floppiness, change in skin colour or change in tone of cry. High, weak, wailing that can't be solved by breastfeeding is serious, but if suckling works to settle a strong cry, then it's likely to be something that will pass.