The Midrash (Vayikra Rabba 30:12) says Hadasim refer to Jews who have good deeds but lack Torah:
וַעֲנַף עֵץ עָבֹת, אֵלּוּ יִשְׂרָאֵל, מָה הֲדַס יֵשׁ בּוֹ רֵיחַ וְאֵין בּוֹ טַעַם, כָּךְ יִשְׂרָאֵל יֵשׁ בָּהֶם שֶׁיֵּשׁ בָּהֶם מַעֲשִׂים טוֹבִים וְאֵין בָּהֶם תּוֹרָה
yet the Gemara (Sanhedrin 93a) says Hadasim refer to the righteous:
כיון שנסתכל בחנניה מישאל ועזריה נתקררה דעתו שנאמר (זכריה א, ח) והוא עומד בין ההדסים אשר במצולה ואין הדסים אלא צדיקים שנאמר (אסתר ב, ז) ויהי אומן את הדסה - Once He looked at Hananiah, Mishael, and Azariah He was placated, as it is stated: “And he stood among the myrtle bushes [hadassim] that were in the depths [bametzula].” And hadassim is referring to no one but the righteous, as it is stated: “And he raised Hadassah, that is Esther, his uncle’s daughter” (Esther 2:7). Hadassah is an appellation for the righteous Esther.
How do we reconcile these two definitions of Hadasim according to Chazal?