mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
@@ -343,9 +343,7 @@ class TranscriptController:
|
||||
query = query.where(rooms.c.id == room_id)
|
||||
|
||||
if search_term:
|
||||
query = query.where(
|
||||
transcripts.c.title.ilike(f"%{search_term}%")
|
||||
) # Assuming there's a 'title' column
|
||||
query = query.where(transcripts.c.title.ilike(f"%{search_term}%"))
|
||||
|
||||
query = query.with_only_columns(
|
||||
[
|
||||
|
||||
@@ -307,6 +307,12 @@ export default function TranscriptBrowser() {
|
||||
Search
|
||||
</Button>
|
||||
</Flex>
|
||||
<Pagination
|
||||
page={page}
|
||||
setPage={setPage}
|
||||
total={response?.total || 0}
|
||||
size={response?.size || 0}
|
||||
/>
|
||||
<Box display={{ base: "none", md: "block" }}>
|
||||
<Table colorScheme="gray">
|
||||
<Thead>
|
||||
@@ -485,12 +491,6 @@ export default function TranscriptBrowser() {
|
||||
))}
|
||||
</Stack>
|
||||
</Box>
|
||||
<Pagination
|
||||
page={page}
|
||||
setPage={setPage}
|
||||
total={response?.total || 0}
|
||||
size={response?.items.length || 0}
|
||||
/>
|
||||
</Flex>
|
||||
</Flex>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user