Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(search): Search result remove count #3849

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,10 @@
"defaultMessage": "Articles has been collected",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "Incorrect verification code. Please check your input, or try resend",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1624,10 +1628,6 @@
"ub1kHa": {
"defaultMessage": "Add to collection"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} one {} other {# Results}} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "End of the results"
},
Expand Down
8 changes: 4 additions & 4 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,10 @@
"defaultMessage": "Articles has been collected",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "Incorrect verification code. Please check your input, or try resend",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1624,10 +1628,6 @@
"ub1kHa": {
"defaultMessage": "Add to collection"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} one {} other {# Results}} - Matters Search",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "End of the results"
},
Expand Down
8 changes: 4 additions & 4 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,10 @@
"defaultMessage": "作品被关联",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters 搜索",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "验证码不正确,请检查输入内容或重新发送",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1624,10 +1628,6 @@
"ub1kHa": {
"defaultMessage": "加入选集"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} other {# 条结果}} - Matters 搜索",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "已显示所有结果"
},
Expand Down
8 changes: 4 additions & 4 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,10 @@
"defaultMessage": "作品被關聯",
"description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx"
},
"l9LpDx": {
"defaultMessage": "{q} - Matters 搜尋",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"lI2l2/": {
"defaultMessage": "驗證碼不正確,請檢查輸入內容或重新發送",
"description": "CODE_INVALID"
Expand Down Expand Up @@ -1624,10 +1628,6 @@
"ub1kHa": {
"defaultMessage": "加入選集"
},
"uclzDH": {
"defaultMessage": "{q}: {totalCount, plural, =0 {} other {# 條結果}} - Matters 搜尋",
"description": "src/views/Search/AggregateResults/Articles.tsx"
},
"ui1+QC": {
"defaultMessage": "已顯示所有結果"
},
Expand Down
7 changes: 3 additions & 4 deletions src/views/Search/AggregateResults/Articles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const AggregateArticleResults = () => {

// pagination
const connectionPath = 'search'
const { edges, pageInfo, totalCount } = data?.search || {}
const { edges, pageInfo } = data?.search || {}

const intl = useIntl()

Expand Down Expand Up @@ -106,11 +106,10 @@ const AggregateArticleResults = () => {
<Head
title={intl.formatMessage(
{
defaultMessage:
'{q}: {totalCount, plural, =0 {} one {} other {# Results}} - Matters Search',
defaultMessage: '{q} - Matters Search',
description: 'src/views/Search/AggregateResults/Articles.tsx',
},
{ q: stripSpaces(q), totalCount: +(totalCount?.toPrecision(2) ?? 0) }
{ q: stripSpaces(q) }
)}
path={`/search?q=${stripSpaces(q)}&type=article`}
noSuffix
Expand Down
Loading