fix(panels):use session aware asset requests

This commit is contained in:
Anish Sarkar 2026-06-24 03:55:41 +05:30
parent b4328cd52b
commit 6e4d2eb076
4 changed files with 4 additions and 16 deletions

View file

@ -6,7 +6,7 @@ import * as pdfjsLib from "pdfjs-dist";
import { type ReactNode, useCallback, useEffect, useRef, useState } from "react";
import { Button } from "@/components/ui/button";
import { Spinner } from "@/components/ui/spinner";
import { getAuthHeaders } from "@/lib/auth-utils";
import { getAuthHeaders } from "@/lib/auth-fetch";
pdfjsLib.GlobalWorkerOptions.workerSrc = new URL(
"pdfjs-dist/build/pdf.worker.min.mjs",

View file

@ -21,7 +21,7 @@ import {
import { Spinner } from "@/components/ui/spinner";
import { useMediaQuery } from "@/hooks/use-media-query";
import { baseApiService } from "@/lib/apis/base-api.service";
import { authenticatedFetch } from "@/lib/auth-utils";
import { authenticatedFetch } from "@/lib/auth-fetch";
import { buildBackendUrl } from "@/lib/env-config";
function ReportPanelSkeleton() {