fixes to admin/products

This commit is contained in:
2026-01-09 10:18:32 -05:00
parent ae86fe6867
commit c509cb6cd0
9 changed files with 1061 additions and 368 deletions
+2 -2
View File
@@ -74,12 +74,12 @@ export async function updatePlatform(
dto: UpdatePlatformDto
): Promise<Platform> {
const res = await fetch(`${API_BASE}/api/platforms/${id}`, {
method: "PUT",
method: "PATCH",
headers: {
"Content-Type": "application/json",
...tokenHeaders,
},
body: JSON.stringify(dto),
body: JSON.stringify({ isActive: dto.isActive }),
});
if (!res.ok) {