Skip to content

Commit

Permalink
fix(platform): cast possible numeric query value to string
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyi.levi committed Jan 19, 2023
1 parent 079a32b commit 397b1dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/platform/src/modules/project/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ export const ProjectList = () => {
}>()

useEffect(() => {
dispatcher.getProjects({ page: Number(page), pageSize: Number(pageSize), query, starred: starredOnly })
dispatcher.getProjects({
page: Number(page),
pageSize: Number(pageSize),
query: String(query),
starred: starredOnly,
})
}, [dispatcher, starredOnly, page, pageSize, query, history.length])

// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit 397b1dc

Please sign in to comment.