Every amazing show has a few missteps along the way, but a few of them end up destroying their main characters beyond repair. Some storylines are so weird that they make viewers question the writers' choices. It doesn't matter whether the series is a sitcom or a drama. Any character can fall victim to poor writing and transform from a fan favorite into one hated by audiences. Usually, the show running too long is to blame for this, but there are other causes as well.
https://screenrant.com/great-tv-main-characters-ruined-bad-storyline-episode/