forked from cms/tibi-svelte-starter
Kleinere Anpassungen für Seiten- und Navigations- Bearbeitung.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user