Even before the pilot episode premiered , the show had already been renewed for a 22-episode second season .
Before the first episode aired it was already renewed for season 2 , which had 22 episodes .