chore: remove redundant comments in log component

Remove comments that describe "what" rather than "why" to align with
CLAUDE.md guideline for self-documenting code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
yyh 2026-01-07 10:48:37 +08:00
parent dbc212cd51
commit 146f4f70ca
No known key found for this signature in database

View File

@ -60,7 +60,6 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
const page = queryParams.page > 0 ? queryParams.page : 1
const limit = queryParams.limit > 0 ? queryParams.limit : APP_PAGE_LIMIT
// Get the app type first
const isChatMode = appDetail.mode !== AppModeEnum.COMPLETION
const query = {
@ -77,7 +76,6 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
keyword: debouncedQueryParams.keyword || undefined,
}
// When the details are obtained, proceed to the next request
const { data: chatConversations, refetch: mutateChatList } = useChatConversations({
appId: isChatMode ? appDetail.id : '',
params: query,
@ -115,7 +113,6 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
: total > 0
? <List logs={isChatMode ? chatConversations : completionConversations} appDetail={appDetail} onRefresh={isChatMode ? mutateChatList : mutateCompletionList} />
: <EmptyElement appDetail={appDetail} />}
{/* Show Pagination only if the total is more than the limit */}
{(total && total > APP_PAGE_LIMIT)
? (
<Pagination