diff --git a/app/http/endpoints/api/export/import.go b/app/http/endpoints/api/export/import.go index fc154cb..626a611 100644 --- a/app/http/endpoints/api/export/import.go +++ b/app/http/endpoints/api/export/import.go @@ -582,8 +582,10 @@ func ImportHandler(ctx *gin.Context) { } } - newContextMenuPanel := panelIdMap[*data.Settings.ContextMenuPanel] - data.Settings.ContextMenuPanel = &newContextMenuPanel + if data.Settings.ContextMenuPanel != nil { + newContextMenuPanel := panelIdMap[*data.Settings.ContextMenuPanel] + data.Settings.ContextMenuPanel = &newContextMenuPanel + } if err := dbclient.Client.Settings.Set(ctx, guildId, data.Settings); err != nil { ctx.JSON(500, utils.ErrorJson(err)) diff --git a/frontend/src/js/constants.js b/frontend/src/js/constants.js index 4ecc46a..b5472bd 100644 --- a/frontend/src/js/constants.js +++ b/frontend/src/js/constants.js @@ -1,4 +1,4 @@ -export const API_URL = env.API_URL || "https://api.ticketsbot.cloud" +export const API_URL = env.API_URL || "http://localhost:8081" export const PLACEHOLDER_DOCS_URL = "https://docs.ticketsbot.cloud/setup/placeholders.html" export const OAUTH = {