diff --git a/desk/src/components/AssignmentModal.vue b/desk/src/components/AssignmentModal.vue
index 64ec66bc9..f5cfbdae7 100644
--- a/desk/src/components/AssignmentModal.vue
+++ b/desk/src/components/AssignmentModal.vue
@@ -9,9 +9,8 @@
{
@@ -58,7 +57,7 @@
diff --git a/desk/src/components/SearchComplete.vue b/desk/src/components/SearchComplete.vue
index ff7e842b4..869e07c1c 100644
--- a/desk/src/components/SearchComplete.vue
+++ b/desk/src/components/SearchComplete.vue
@@ -57,6 +57,11 @@ const props = defineProps({
required: false,
default: false,
},
+ customFilters: {
+ type: Object,
+ required: false,
+ default: {},
+ },
});
const r = createListResource({
@@ -66,6 +71,7 @@ const r = createListResource({
fields: [props.labelField, props.searchField, props.valueField],
filters: {
[props.searchField]: ["like", `%${props.value}%`],
+ ...props.customFilters,
},
onSuccess: () => {
selection.value = props.value
@@ -86,6 +92,7 @@ function onUpdateQuery(query: string) {
r.update({
filters: {
[props.searchField]: ["like", `%${query}%`],
+ ...props.customFilters,
},
});