Skip to content

Commit 584892e

Browse files
committed
Do not reset course search in the admin view on each course reload
1 parent 7bee4ab commit 584892e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/client/components/Admin/ChatInstances/ChatInstanceTable.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,6 @@ const ChatInstanceTable = () => {
245245
setOrderBy(property)
246246
}
247247

248-
if (isLoading) return null
249-
250248
return (
251249
<Box sx={{ width: '100%' }}>
252250
<Paper sx={{ width: '100%', mb: 2 }}>
@@ -278,12 +276,14 @@ const ChatInstanceTable = () => {
278276
labelRowsPerPage={t('admin:rowsPerPage')}
279277
/>
280278
</Box>
281-
<ChatInstanceTableChatInstanceWithTokens
282-
rows={chatInstances}
283-
onRequestSort={handleRequestSort}
284-
order={order}
285-
orderBy={orderBy}
286-
/>
279+
{!isLoading && (
280+
<ChatInstanceTableChatInstanceWithTokens
281+
rows={chatInstances}
282+
onRequestSort={handleRequestSort}
283+
order={order}
284+
orderBy={orderBy}
285+
/>
286+
)}
287287
</Paper>
288288
</Box>
289289
)

0 commit comments

Comments
 (0)