Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndpnt committed Nov 19, 2024
1 parent bff0b69 commit 29006a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -706,13 +706,13 @@ Thank you very much`;
export const getStaticProps = async (props: any) => {
const isGitlab = process.env.NEXT_PUBLIC_REPO_TYPE === "GITLAB";

const TERMS_TYPES = await import('@opentermsarchive/terms-types');
const { default: documentTypes } = await import('@opentermsarchive/terms-types');

return JSON.parse(
JSON.stringify({
props: {
...props,
documentTypes: TERMS_TYPES.default || TERMS_TYPES,
documentTypes,
contributorFormMdx: await loadMdxFile(
{
load: 'mdx',
Expand Down

0 comments on commit 29006a1

Please sign in to comment.