sweetheart, you have done nothing wrong at all.
I have a 4.5yo who still has phases.
Sometimes it's as though toddlers can live on air. I promise you that unless there is something seriously wrong she will not let herself starve.
I'll give you a great example. My little guy (who has had all his teeth including 2yo molars since 11mo) decided a while ago that he would eat nothing else but frozen peas. I kid you not. That is all he ate except BFs for a full fortnight. Soon he had forgotten that and was back to eating proper food.
My number one tip in surviving toddlers eating frustrations is don't make it a battle. No matter how much you're seething with frustration on the inside, smile and cheerfully maintain your stance. If they get one iota of an inkling that there might be opportunity for a fight, they'll dig those little heels in lol.