diff --git a/lerna.json b/lerna.json index 4049d5d734..65f04ecf2c 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.15.6", + "version": "2.15.7", "npmClient": "yarn", "packages": [ "packages/*", diff --git a/packages/client/src/components/app/forms/RelationshipField.svelte b/packages/client/src/components/app/forms/RelationshipField.svelte index 9d0503be8e..7cd571f6d9 100644 --- a/packages/client/src/components/app/forms/RelationshipField.svelte +++ b/packages/client/src/components/app/forms/RelationshipField.svelte @@ -108,16 +108,13 @@ } } - $: forceFetchRows(filter, fieldApi) + $: forceFetchRows(filter) $: debouncedFetchRows(searchTerm, primaryDisplay, defaultValue) const forceFetchRows = async () => { - if (!fieldApi) { - return - } // if the filter has changed, then we need to reset the options, clear the selection, and re-fetch optionsObj = {} - fieldApi.setValue([]) + fieldApi?.setValue([]) selectedValue = [] debouncedFetchRows(searchTerm, primaryDisplay, defaultValue) }