fix(plan/ui): correct screenshot extension and align bot ext_info guard with backend
This commit is contained in:
@@ -289,6 +289,7 @@ function resetDrawerForm() {
|
||||
|
||||
function parseBotExtInfo(extInfo: string | undefined): string {
|
||||
if (!extInfo) return ''
|
||||
if (!extInfo.trim().startsWith('{')) return extInfo
|
||||
try {
|
||||
const parsed = JSON.parse(extInfo)
|
||||
if (parsed && typeof parsed === 'object' && parsed.webhook_url) {
|
||||
|
||||
Reference in New Issue
Block a user