Skip to content

Commit 750b2cb

Browse files
Copilothuangyiirene
andcommitted
Revert useEffect dependency - prevent infinite loop
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent d5d2b84 commit 750b2cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/components/src/ui/filter-builder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function FilterBuilder({
7777
if (value && JSON.stringify(value) !== JSON.stringify(filterGroup)) {
7878
setFilterGroup(value)
7979
}
80-
}, [value, filterGroup])
80+
}, [value])
8181

8282
const handleChange = (newGroup: FilterGroup) => {
8383
setFilterGroup(newGroup)

0 commit comments

Comments
 (0)