Skip to content

Commit 2ff6884

Browse files
Actually use new ids
1 parent 4c6a10d commit 2ff6884

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def find_css_class(self, css_class : str) -> tuple[dict, str, dict[str, str]]|No
8787

8888
match = self.index_css_class[css_class]
8989
module = self.find_module(match[0])
90-
return (module, match[1], module["classname_mappings"][match[1]])
90+
return (module, match[1], module["classname_mappings"][match[1]], match[0])
9191

9292
def find_webpack_key(self, webpack_key : str) -> list[tuple[dict, str, dict[str, str]]]|None:
9393
if webpack_key not in self.index_webpack_key:
@@ -106,7 +106,7 @@ def get_universal_key_for_css_class(self, css_class : str) -> str|None:
106106
return None
107107

108108
module = css[0]
109-
module_id = list(module["ids"].values())[0]
109+
module_id = css[3]
110110
module_name = ("_" + str(module_id) if module['name'] is None else module['name'])
111111

112112
return f"{module_name}_{css[1]}"

0 commit comments

Comments
 (0)