feat: enhance API response handling and add new components for module management
This commit is contained in:
@@ -29,7 +29,8 @@ export default async function NewsletterTemplatesPage({ params }: PageProps) {
|
||||
if (!acct) return <AccountNotFound />;
|
||||
|
||||
const api = createNewsletterApi(client);
|
||||
const templates = await api.listTemplates(acct.id);
|
||||
const templatesResult = await api.listTemplates(acct.id);
|
||||
const templates = templatesResult.data;
|
||||
|
||||
return (
|
||||
<CmsPageShell account={account} title="Newsletter-Vorlagen">
|
||||
|
||||
Reference in New Issue
Block a user