Skip to content

Commit

Permalink
Fix for #8
Browse files Browse the repository at this point in the history
  • Loading branch information
yGuy committed Mar 29, 2023
1 parent c7cdc0b commit 41b0e0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatgpt-mattermost-bot",
"version": "1.3.0",
"version": "1.3.1",
"private": true,
"scripts": {
"start": "node ./src/botservice.js"
Expand Down
2 changes: 1 addition & 1 deletion src/process-graph-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { Log } = require('debug-level')
const log = new Log('bot')

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

/**\
* @param {string} content
Expand Down

0 comments on commit 41b0e0e

Please sign in to comment.