🐛 Fix cannot edit release
This commit is contained in:
parent
2e951a084e
commit
e6822c0009
@ -18,9 +18,9 @@ export const getServerSideProps: GetServerSideProps = (async (context) => {
|
||||
})
|
||||
}) satisfies GetServerSideProps<{ release: any }>
|
||||
|
||||
export default function ProductEdit({ release }: InferGetServerSidePropsType<typeof getServerSideProps>) {
|
||||
export default function ReleaseEdit({ release }: InferGetServerSidePropsType<typeof getServerSideProps>) {
|
||||
async function onSubmit(data: MatrixReleaseForm) {
|
||||
await sni.put('/cgi/ma/products/' + release.id + '/releases/' + release.productId, data)
|
||||
await sni.put('/cgi/ma/products/' + release.productId + '/releases/' + release.id, data)
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user