Kleinere Anpassungen für Seiten- und Navigations- Bearbeitung.

This commit is contained in:
2022-05-30 15:57:11 +02:00
parent c67f712280
commit 5d08a96327
11 changed files with 32 additions and 23 deletions

View File

@@ -189,7 +189,7 @@ export const sendEmail = async (type: string = "contactForm", data: any, noToken
export const getContent = async (path: string, lang: string): Promise<Content> => {
const c = await api<Content[]>("content", {
limit: 1,
filter: { path: path.replace("/" + lang, ""), locale: lang },
filter: { path, locale: lang },
})
if (c?.data?.length) {
return c.data[0]