fix: Jan server is showing blank page (#1702)
This commit is contained in:
parent
4cf47777e6
commit
b4f104f411
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user