fix version issue
This commit is contained in:
parent
79ec9f4eff
commit
6b422d649a
@ -17,7 +17,7 @@ export const GamePage = () => {
|
||||
const fetchInfo = async () => {
|
||||
let url = `/api/release?author=${author}&slug=${slug}`;
|
||||
if (version) {
|
||||
url += `version=${version}`;
|
||||
url += `&version=${version.slice(1)}`;
|
||||
}
|
||||
const information = await fetch(url);
|
||||
const json = await information.json();
|
||||
@ -66,7 +66,7 @@ export const GamePage = () => {
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
`}>
|
||||
Version: <select defaultValue={info.release.version} onChange={(ev) => navigate(`/api/release?author=${author}&slug=${slug}&version=${ev.target.value}`)}>
|
||||
Version: <select defaultValue={info.release.version} onChange={(ev) => navigate(`/u/${author}/${slug}/v${version}`)}>
|
||||
{
|
||||
info.versions.map(v => (
|
||||
<option key={v} value={v}>{v}</option>
|
||||
|
Loading…
x
Reference in New Issue
Block a user