Skip to content

Commit

Permalink
fix: 🐛 iterators to array (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
maoxiaoke committed Dec 23, 2021
1 parent 76fa893 commit 4138f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Error(props) {
const searchs = new URLSearchParams(props.location.search);
const errCode = searchs.get('code');
const { siteConfig } = useDocusaurusContext();
const searchsValues = [...searchs.values()].filter((c) => errCode !== c);
const searchsValues = Array.from(searchs.values()).filter((c) => errCode !== c);

if (!errCode) {
return (
Expand Down

0 comments on commit 4138f92

Please sign in to comment.