This commit is contained in:
@@ -438,10 +438,12 @@ export const MissionForm = () => {
|
||||
} catch (error) {
|
||||
if (error instanceof AxiosError) {
|
||||
toast.error(
|
||||
`Fehler beim Erstellen des Einsatzes: ${error.response?.data.error}`,
|
||||
`Fehler beim Bearbeiten des Einsatzes: ${error.response?.data.error}`,
|
||||
);
|
||||
} else {
|
||||
toast.error(`Fehler beim Erstellen des Einsatzes: ${(error as Error).message}`);
|
||||
toast.error(
|
||||
`Fehler beim Bearbeiten des Einsatzes: ${(error as Error).message}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
})}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { prisma } from "@repo/db";
|
||||
import { MessageCircleWarning } from "lucide-react";
|
||||
|
||||
export const WarningAlert = async () => {
|
||||
const config = await prisma.notam.findFirst({
|
||||
const config = await prisma.config.findFirst({
|
||||
orderBy: [{ createdAt: "desc" }],
|
||||
});
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ export default async function RootLayout({
|
||||
}>) {
|
||||
const session = await getServerSession();
|
||||
|
||||
const config = await prisma.notam.findFirst({
|
||||
const config = await prisma.config.findFirst({
|
||||
orderBy: [{ createdAt: "desc" }],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user