Kim Kardashian and her baby bump almost endured a wardrobe malfunction on Wednesday in Beverly Hills. 

The pregnant Keeping Up With The Kardashian star was spotted out-and-about with friend, Malika Haqq, dressed in a casual minidress. The weather appeared to be a bit windy, as the actress' dress flew up in the air. The Hollywood Life has pictures of Kim grabbing the end of her dress as it almost flew up her waist. 

Fortunately for Kim, she caught her dress just in time, as cameras only caught her bare legs. 

She smiled and laughed off the embarrassing moment. 

The 31-year-old went against her normal high heels and opted for a pair of black sandals. 

She accessorized the outfit with a dark blazer and a black Berkin bag. 

Kim, who is in her third trimester of her pregnancy appears to be going against stiletto heels, as her due date nears.

Enstars reported earlier that she was spotted at Dan Tara in West Hollywood wearing flip flops. She seems to be giving her feet a break ever since a picture of her swollen feet went viral. 

Back in March, Kim appeared on Live With Kelly & Michael and revealed that her feet were swollen and sore. 

"My foot is so swollen. I will say. It really is. And I'm sad. You know, 'cuz all my shoes doesn't really fit me anymore. But I heard it goes back. Hopefully."

Kim has faced a lot of criticism since she became pregnant and said that the negativity doesn't bother him. She also said on the show that her sister Kourtney warned her about the haters. 

"She said all of the criticism you get when you're pregnant or a new mom is insane. Just wait." She went on to say, "I wore this black leather skirt the other day. People are like why are you wearing black? Are you ashamed? Are you trying to hide it? It was tight! I was trying to show the bump. (They said) You're trying to suffocate the baby. I had this maternity skirt made for me, like specially!" she said.