Fix relationship field filter on change (#14879)

Co-authored-by: Conor Webb <126772285+ConorWebb96@users.noreply.github.com>
This commit is contained in:
melohagan 2024-10-29 12:31:31 +00:00 committed by GitHub
parent 5cad630b25
commit 53854769ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -113,7 +113,10 @@
$: debouncedFetchRows(searchTerm, primaryDisplay, defaultValue)
const forceFetchRows = async () => {
// if the filter has changed, then we need to reset the options, clear the selection, and re-fetch
optionsObj = {}
fieldApi?.setValue([])
selectedValue = []
debouncedFetchRows(searchTerm, primaryDisplay, defaultValue)
}
const fetchRows = async (searchTerm, primaryDisplay, defaultVal) => {