diff --git a/README.md b/README.md index 2c32ca7..abffc8e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ - `scripts/build.js`: Build the server entry code to be imported by the serverless function. Powered by [esbuild](https://esbuild.github.io). - `api/resume.ts`: Serverless function that gets my information from an Airtable base and responses the PDF document. - `src/app`: Contains the ReactPDF document app. -- `src/browser`: The entry level for Vite.js, it uses an static [data.json](./src/data.json) to populate the app. +- `src/browser`: The entry level for Vite.js, it uses an static [data.json](./src/data/) to populate the app. - `src/server`: The entry level for Serveless, it uses a [function invocation](./src/server/main.tsx#L5) to populate the app. - `src/react-pdf.ts`: Re-exportation of ReactPDF because of [a bug](https://github.com/vitejs/vite/issues/3405). diff --git a/src/app/index.tsx b/src/app/index.tsx index 3b2a51d..4b6274c 100644 --- a/src/app/index.tsx +++ b/src/app/index.tsx @@ -159,13 +159,13 @@ function AppDocument({ techProfile, techResume }: AppDocumentProps) { - {techResume.workProjects?.length > 0 ? ( + {techResume.workProjects?.length ? (
- {techResume.workProjects.map((workProject) => ( + {techResume.workProjects?.map((workProject) => (
- {techResume.techGroups.map((techGroup) => ( + {techResume.techGroups?.map((techGroup) => (