Skip to content

Commit 41b0e0e

Browse files
committed
Fix for yGuy#8
1 parent c7cdc0b commit 41b0e0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chatgpt-mattermost-bot",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"private": true,
55
"scripts": {
66
"start": "node ./src/botservice.js"

src/process-graph-response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { Log } = require('debug-level')
44
const log = new Log('bot')
55

66
const yFilesGPTServerUrl = process.env['YFILES_SERVER_URL']
7-
const yFilesEndpoint = new URL('/json-to-svg', yFilesGPTServerUrl)
7+
const yFilesEndpoint = yFilesGPTServerUrl ? new URL('/json-to-svg', yFilesGPTServerUrl) : undefined
88

99
/**\
1010
* @param {string} content

0 commit comments

Comments
 (0)