mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Formating code, changed query param "q" to "question"
This commit is contained in:
parent
96a44e3171
commit
0906bdb253
1 changed files with 7 additions and 7 deletions
|
@ -22,12 +22,12 @@ export default function AllQuestions({ router }) {
|
|||
.then((data) => {
|
||||
setData(data)
|
||||
|
||||
router.replace(
|
||||
`${router.asPath.replace('.html', '')}`,
|
||||
undefined,
|
||||
{ shallow: true }
|
||||
)
|
||||
const querySearch = router.query.q ? decodeURIComponent(router.query.q) : ''
|
||||
router.replace(`${router.asPath.replace('.html', '')}`, undefined, {
|
||||
shallow: true,
|
||||
})
|
||||
const querySearch = router.query.question
|
||||
? decodeURIComponent(router.query.question)
|
||||
: ''
|
||||
setSearchTerm(querySearch)
|
||||
})
|
||||
}, [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue