diff --git a/server/lib/notion/helpers/getListItems.tsx b/server/lib/notion/helpers/getListItems.tsx index c52e59a35..1f4176806 100644 --- a/server/lib/notion/helpers/getListItems.tsx +++ b/server/lib/notion/helpers/getListItems.tsx @@ -19,7 +19,7 @@ export default async function getListItems( if (!list) { return null; } - const backSide = await getChildren(result, handler); + const backSide = await getChildren(list, handler); handler.skip.push(result.id); const isTodo = type === 'to_do'; const checked = @@ -36,7 +36,11 @@ export default async function getListItems( className={`checkbox checkbox-${list.checked ? 'on' : 'off'}`} > )} - {renderTextChildren(list.text, handler.settings)} +
{backSide && (
=12.0.0" }, diff --git a/server/server.ts b/server/server.ts index 71d87f8bd..865b07694 100644 --- a/server/server.ts +++ b/server/server.ts @@ -7,6 +7,12 @@ import cookieParser from 'cookie-parser'; import * as dotenv from 'dotenv'; import { IsDebug } from './lib/debug'; +if (IsDebug()) { + const localEnvFile = path.join(__dirname, '.env'); + if (existsSync(localEnvFile)) { + dotenv.config({ path: localEnvFile }); + } +} import { ALLOWED_ORIGINS, BUILD_DIR, INDEX_FILE } from './lib/constants'; import ErrorHandler from './lib/misc/ErrorHandler'; @@ -30,13 +36,6 @@ import { ScheduleCleanup } from './lib/jobs/JobHandler'; import ConversionJob from './lib/jobs/ConversionJob'; import RequireAuthentication from './middleware/RequireAuthentication'; -if (IsDebug()) { - const localEnvFile = path.join(__dirname, '.env'); - if (existsSync(localEnvFile)) { - dotenv.config({ path: localEnvFile }); - } -} - function serve() { const templateDir = path.join(__dirname, 'templates'); const app = express(); diff --git a/server/templates/custom.css b/server/templates/custom.css index 5ec7553e6..8349e0ab0 100644 --- a/server/templates/custom.css +++ b/server/templates/custom.css @@ -26,15 +26,10 @@ body { } .front-text-post { - color: gray; font-size: 1rem; } .back-text { font-size: 1.5rem; text-align: left; -} - -.extra { - color: gray; -} +} \ No newline at end of file