web: use invalid id for submit to invoke error #155

Merged
Quaternions merged 1 commits from empty-submit into staging 2025-06-04 05:32:35 +00:00
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ export default function SubmissionInfoPage() {
DisplayName: (formData.get("display-name") as string) ?? "unknown", // TEMPORARY! TODO: Change
Creator: (formData.get("creator") as string) ?? "unknown", // TEMPORARY! TODO: Change
GameID: game,
AssetID: Number((formData.get("asset-id") as string) ?? "0"),
AssetID: Number((formData.get("asset-id") as string) ?? "-1"),
};
console.log(payload)

View File

@@ -27,7 +27,7 @@ export default function MapfixInfoPage() {
const formData = new FormData(form);
const payload: MapfixPayload = {
AssetID: Number((formData.get("asset-id") as string) ?? "0"),
AssetID: Number((formData.get("asset-id") as string) ?? "-1"),
TargetAssetID: Number(dynamicId.mapId),
Description: (formData.get("description") as string) ?? "unknown", // TEMPORARY! TODO: Change
};

View File

@@ -32,7 +32,7 @@ export default function SubmissionInfoPage() {
DisplayName: (formData.get("display-name") as string) ?? "unknown", // TEMPORARY! TODO: Change
Creator: (formData.get("creator") as string) ?? "unknown", // TEMPORARY! TODO: Change
GameID: game,
AssetID: Number((formData.get("asset-id") as string) ?? "0"),
AssetID: Number((formData.get("asset-id") as string) ?? "-1"),
};
console.log(payload)