Bläddra i källkod

URL

tags/Baseline_30082024_FRONTEND_UAT
cyril.tsui 1 år sedan
förälder
incheckning
9e071674b2
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      src/components/CreateInvoice/CreateInvoice.tsx

+ 2
- 1
src/components/CreateInvoice/CreateInvoice.tsx Visa fil

@@ -24,6 +24,7 @@ import ProjectTotalFee from "./ProjectTotalFee";
import { timestampToDateString } from "@/app/utils/formatUtil"; import { timestampToDateString } from "@/app/utils/formatUtil";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { getSession } from "next-auth/react" import { getSession } from "next-auth/react"
import { BASE_API_URL } from "@/config/api";


const CreateInvoice: React.FC = ({ const CreateInvoice: React.FC = ({
}) => { }) => {
@@ -117,7 +118,7 @@ const CreateInvoice: React.FC = ({
try { try {
// Make an API request to generate the JasperReport // Make an API request to generate the JasperReport
const response = await fetch(`http://localhost:8090/api/invoices/pdf`, {
const response = await fetch(`${BASE_API_URL}/invoices/pdf`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',


Laddar…
Avbryt
Spara