Allow instance to be passed in (optional)
This commit is contained in:
1 parent
14d1e8f649
commit
e5d7e7824e
1 file changed
+2
-1
@@ -9,6 +9,7 @@
|
||||
|
||||
export let q: string = ''
|
||||
|
||||
export let instance: string | undefined = undefined
|
||||
export let listing_type: ListingType = 'Subscribed'
|
||||
export let showWhenEmpty: boolean = false
|
||||
|
||||
@@ -17,7 +18,7 @@
|
||||
|
||||
<Search
|
||||
search={async (q) => {
|
||||
const results = await getClient().search({
|
||||
const results = await getClient(instance).search({
|
||||
q: q || ' ',
|
||||
type_: 'Users',
|
||||
limit: 20,
|
||||
|
||||
Reference in new issue
Block a user