Browse Source

feat: ランダム抽出のバグ修正(#132) (#141)

#132

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: https://git.miteruzo.com/miteruzo/btrc-hub/pulls/141
main
みてるぞ 1 week ago
parent
commit
19a17e7ba7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frontend/src/components/TagSidebar.tsx

+ 1
- 1
frontend/src/components/TagSidebar.tsx View File

@@ -79,7 +79,7 @@ export default (({ posts }: Props) => {
try try
{ {
const { data } = await axios.get (`${ API_BASE_URL }/posts/random`, const { data } = await axios.get (`${ API_BASE_URL }/posts/random`,
{ params: { tags: tagsQuery.split (' ').filter (e => e !== '').join (','),
{ params: { tags: tagsQuery.split (' ').filter (e => e !== '').join (' '),
match: (anyFlg ? 'any' : 'all') } }) match: (anyFlg ? 'any' : 'all') } })
navigate (`/posts/${ (data as Post).id }`) navigate (`/posts/${ (data as Post).id }`)
} }


Loading…
Cancel
Save