She was originally intended to have a much larger role in the show, but was slowly written out when plans changed. She was released from her contract entirely after eight episodes. The Wikipedia article for Grace Lee Whitney has all the details (sourced from her own memoir.)

Only top voted, non community-wiki answers of a minimum length are eligible