Skip to content

Commit 301caeb

Browse files
authored
Merge pull request #2883 from appwrite/fix-SER-1124-domains-searching
fix: domains searching
2 parents a41047e + ceb2b40 commit 301caeb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/routes/(console)/organization-[organization]/domains/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
limit={data.limit}
179179
offset={data.offset}
180180
total={data.domains.total} />
181-
{:else if data?.query}
181+
{:else if data?.query || data?.search}
182182
<EmptySearch hidePages bind:search={data.search} target="domains">
183183
<svelte:fragment slot="actions">
184184
<Button

src/routes/(console)/organization-[organization]/domains/+page.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export const load = async ({ depends, url, route, parent }) => {
2929
Query.orderDesc(''),
3030
Query.equal('teamId', organization.$id),
3131
...parsedQueries.values()
32-
]
32+
],
33+
search: search || undefined
3334
})
3435
};
3536
};

0 commit comments

Comments
 (0)