pop frame_index from element for element hashing (#1785)

This commit is contained in:
Shuchang Zheng
2025-02-18 16:45:17 +08:00
committed by GitHub
parent 9f915131d4
commit 30ae63bae9

View File

@@ -159,6 +159,7 @@ def clean_element_before_hashing(element: dict) -> dict:
element_copy = copy.deepcopy(element)
element_copy.pop("id", None)
element_copy.pop("rect", None)
element_copy.pop("frame_index", None)
if "attributes" in element_copy:
element_copy["attributes"].pop(SKYVERN_ID_ATTR, None)
if "children" in element_copy: