2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Fix for filter adjustment in related field (#6396)

- Cannot compare two objects directly
This commit is contained in:
Oliver 2024-02-03 23:24:24 +11:00 committed by GitHub
parent 5bc00298c6
commit 2a924ec85b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ export function RelatedModelField({
} }
// If the filters have changed, clear the data // If the filters have changed, clear the data
if (_filters != filters) { if (JSON.stringify(_filters) !== JSON.stringify(filters)) {
resetSearch(); resetSearch();
setFilters(_filters); setFilters(_filters);
} }