update admin dashboard & landing page editor
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
import type { LandingPageContent } from '@/components/landing/content';
|
||||
import { cache } from 'react';
|
||||
import {
|
||||
defaultLandingPageContent,
|
||||
mergeLandingPageContent,
|
||||
} from '@/components/landing/content';
|
||||
import { mergeLandingPageContent } from '@/components/landing/content';
|
||||
|
||||
import { getPayloadClient } from './get-payload';
|
||||
|
||||
@@ -19,9 +16,6 @@ export const getLandingPageContent = cache(
|
||||
}
|
||||
).findGlobal({ slug: 'landing-page', draft: isPreview });
|
||||
|
||||
return mergeLandingPageContent(
|
||||
(landingPage as Partial<LandingPageContent> | null | undefined) ??
|
||||
defaultLandingPageContent,
|
||||
);
|
||||
return mergeLandingPageContent(landingPage as Partial<LandingPageContent>);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user