Skip to content

Commit

Permalink
Fix Resume Viewer page for SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
blopa committed Apr 29, 2021
1 parent 0c420ae commit cae8bca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ The following ``JSON`` is a result of [this Google Spreadsheet](https://docs.goo
![ScreenShot](https://raw.githubusercontent.com/blopa/Resume-Builder/main/screenshots/v3/screenshot_3.png)

## Release Notes
- **v3.1.1:**
- Fix Resume Viewer page for SSR
- **v3.1.0:**
- Update spreadsheet and JSON schema
- Fix template selector not using the global state
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resume-builder",
"version": "3.1.0",
"version": "3.1.1",
"description": "Resume Builder",
"main": "index.js",
"author": "Pablo Pirata",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ResumeViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const importTemplate = (template) => lazy(() =>

const ResumeViewer = ({ params, uri }) => {
const intl = useIntl();
const [username, lang] = params['*'].split('/'); // TODO
const [username, lang] = (params['*'] || '').split('/'); // TODO
const template = uri.split('/').pop(); // TODO

const pageIntl = useMemo(() => {
Expand Down

0 comments on commit cae8bca

Please sign in to comment.