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