SCGR commited on
Commit
352da4f
·
1 Parent(s): 428f38c
Files changed (1) hide show
  1. frontend/src/pages/UploadPage.tsx +1 -3
frontend/src/pages/UploadPage.tsx CHANGED
@@ -20,8 +20,6 @@ export default function UploadPage() {
20
  const PH_REGION = "_TBD_REGION";
21
  const PH_CATEGORY = "_TBD_CATEGORY";
22
 
23
- const [mapId, setMapId] = useState<string | null>(null);
24
-
25
  const [file, setFile] = useState<File | null>(null);
26
  //const [source, setSource] = useState('');
27
  //const [region, setRegion] = useState('');
@@ -95,7 +93,7 @@ export default function UploadPage() {
95
 
96
  const mapIdVal = mapJson.map_id;
97
  if (!mapIdVal) throw new Error('Upload failed: map_id not found');
98
- setMapId(mapIdVal);
99
 
100
  /* 2) caption */
101
  const capRes = await fetch(
 
20
  const PH_REGION = "_TBD_REGION";
21
  const PH_CATEGORY = "_TBD_CATEGORY";
22
 
 
 
23
  const [file, setFile] = useState<File | null>(null);
24
  //const [source, setSource] = useState('');
25
  //const [region, setRegion] = useState('');
 
93
 
94
  const mapIdVal = mapJson.map_id;
95
  if (!mapIdVal) throw new Error('Upload failed: map_id not found');
96
+ // setMapId(mapIdVal);
97
 
98
  /* 2) caption */
99
  const capRes = await fetch(