♻️ Fikser ingress-"feil"

Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
Co-authored-by: Amalie Erdal Mansåker <amalie.erdal.mansaker@nav.no>
This commit is contained in:
Sindre Kjelsrud 2023-07-26 13:03:30 +02:00
parent a4b83e13a6
commit 0271b96cbf
5 changed files with 4 additions and 16 deletions

View file

@ -1,5 +1,4 @@
import FeilCard from "./FeilCard";
import { backendURL } from "../const.ts";
import { Feilmelding } from "../interface.ts";
import { useEffect, useState } from "react";
@ -17,7 +16,7 @@ const CardsContainer = () => {
* @returns response
*/
async function fetchAlleFeil() {
const response = await fetch(backendURL + "/api/hentallefeil", {
const response = await fetch("/api/hentallefeil", {
method: "GET",
headers: {
"Content-Type": "application/json",