Skip to content

Commit

Permalink
fix: Jan server is showing blank page (janhq#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Jan 22, 2024
1 parent 4cf4777 commit b4f104f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@fastify/cors": "^8.4.2",
"@fastify/static": "^6.12.0",
"@fastify/swagger": "^8.13.0",
"@fastify/swagger-ui": "^2.0.1",
"@fastify/swagger-ui": "2.0.1",
"@janhq/core": "link:./core",
"dotenv": "^16.3.1",
"fastify": "^4.24.3",
Expand Down
2 changes: 1 addition & 1 deletion web/screens/LocalServer/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Logs = () => {

useEffect(() => {
getServerLog().then((log) => {
setLogs(log.split(/\r?\n|\r|\n/g))
if (typeof log?.split === 'function') setLogs(log.split(/\r?\n|\r|\n/g))
})

// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit b4f104f

Please sign in to comment.