Avinashnalla7 commited on
Commit
3c1bdb2
·
1 Parent(s): 1ac7624

Fix PDF loading via API_BASE from HF env

Browse files
Files changed (1) hide show
  1. src/App.jsx +3 -1
src/App.jsx CHANGED
@@ -243,7 +243,9 @@ export default function App() {
243
  useEffect(() => {
244
  const sp = new URLSearchParams(window.location.search);
245
 
246
- const id = sp.get("pdf_id");
 
 
247
  setPdfId(id || null);
248
 
249
  const tid = sp.get("template_id");
 
243
  useEffect(() => {
244
  const sp = new URLSearchParams(window.location.search);
245
 
246
+ console.log("URL", window.location.href);
247
+ console.log("query", Object.fromEntries(sp.entries()));
248
+ const id = sp.get("pdf_id") || sp.get("id") || sp.get("pdfId") || sp.get("pdf");
249
  setPdfId(id || null);
250
 
251
  const tid = sp.get("template_id");