web: fix mapfix submit
This commit is contained in:
parent
cf1906acaa
commit
0cb2bec6e0
@ -13,7 +13,7 @@ interface MapfixPayload {
|
||||
TargetAssetID: number;
|
||||
}
|
||||
interface IdResponse {
|
||||
ID: number;
|
||||
OperationID: number;
|
||||
}
|
||||
|
||||
export default function MapfixInfoPage() {
|
||||
@ -53,7 +53,7 @@ export default function MapfixInfoPage() {
|
||||
const id_response:IdResponse = await response.json();
|
||||
|
||||
// navigate to newly created mapfix
|
||||
window.location.assign(`/mapfixes/${id_response.ID}`)
|
||||
window.location.assign(`/operations/${id_response.OperationID}`)
|
||||
|
||||
} catch (error) {
|
||||
console.error("Error submitting data:", error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user