Fix for filter adjustment in related field (#6396)

- Cannot compare two objects directly
This commit is contained in:
Oliver authored and GitHub committed 2024-02-03 23:24:24 +11:00
1 parent 5bc00298c6
commit 2a924ec85b
1 file changed
+1 -1
@@ -115,7 +115,7 @@ export function RelatedModelField({
}
// If the filters have changed, clear the data
if (_filters != filters) {
if (JSON.stringify(_filters) !== JSON.stringify(filters)) {
resetSearch();
setFilters(_filters);
}