diff --git a/src/pages/console/matrix/products/[id]/releases/[release]/edit.tsx b/src/pages/console/matrix/products/[id]/releases/[release]/edit.tsx index 1a5662e..d4e57e0 100644 --- a/src/pages/console/matrix/products/[id]/releases/[release]/edit.tsx +++ b/src/pages/console/matrix/products/[id]/releases/[release]/edit.tsx @@ -18,9 +18,9 @@ export const getServerSideProps: GetServerSideProps = (async (context) => { }) }) satisfies GetServerSideProps<{ release: any }> -export default function ProductEdit({ release }: InferGetServerSidePropsType) { +export default function ReleaseEdit({ release }: InferGetServerSidePropsType) { 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 (