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

#132

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #141
This commit was merged in pull request #141.
This commit is contained in:
2025-10-04 22:49:04 +09:00
parent 09153aec93
commit 19a17e7ba7
+1 -1
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 }`)
} }