🐛 Fix cannot edit release

This commit is contained in:
LittleSheep 2025-01-12 00:40:38 +08:00
parent 2e951a084e
commit e6822c0009

View File

@ -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 (