Skip to content

Commit

Permalink
fix: send bbox from geojson properties to josm (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 authored Feb 23, 2024
1 parent 3212ba4 commit cfb8a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/api/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const fetchConvertToOsmDetails: Function = (url: string) => {
};
};

export const ConvertXMLToJOSM: Function = (url: string, projectBbox) => {
export const ConvertXMLToJOSM: Function = (url: string, projectBbox: number[]) => {
return async (dispatch) => {
dispatch(CoreModules.TaskActions.SetConvertXMLToJOSMLoading(true));
const getConvertXMLToJOSM = async (url) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const SubmissionsTable = ({ toggleView }) => {
dispatch(
ConvertXMLToJOSM(
`${import.meta.env.VITE_API_URL}/submission/get_osm_xml/${decodedId}`,
projectInfo.outline_geojson.bbox,
projectInfo?.outline_geojson?.properties?.bbox,
),
);
};
Expand Down

0 comments on commit cfb8a76

Please sign in to comment.