We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f445af4 commit be292f8Copy full SHA for be292f8
1 file changed
src/frontend/src/Components/map/panels/CamPanel.js
@@ -74,13 +74,14 @@ export default function CamPanel(props) {
74
const newCam = camFeature.id ? camFeature : camFeature.getProperties();
75
rootCamRef.current = newCam;
76
setCamera(newCam);
77
- const params = new URLSearchParams(window.location.search);
78
- const savedCamIndex = params.get('camIndex') === null ? 0: params.get('camIndex');
79
- setCamIndex(savedCamIndex);
+
+ setCamIndex(0);
80
81
searchParams.set("type", 'camera');
82
searchParams.set("id", newCam.id);
83
searchParams.delete("display_category");
+ searchParams.delete("camIndex");
84
85
setSearchParams(searchParams, { replace: true });
86
87
setIsUpdated(false);
0 commit comments