From e6822c0009d5da1f53abbf5538b0a0f61851cd64 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 12 Jan 2025 00:40:38 +0800 Subject: [PATCH] :bug: Fix cannot edit release --- .../console/matrix/products/[id]/releases/[release]/edit.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (