Upset stomach

So I’m currently gassy and with somewhat of an upset stomach (I think a slice of pizza I ate upset my stomach) but I’m not sure if it’s okay to breastfeed? I don’t want whatever I ate to upset my baby’s stomach too since what I eat travels to my breast milk?