From dd005f5fa51b0662d249aeedfe5c071589df619a Mon Sep 17 00:00:00 2001 From: bymyself Date: Tue, 14 Jan 2025 21:34:11 -0700 Subject: [PATCH] Allow parent component to pass tags to issue report panel (#2247) --- .../dialog/content/ExecutionErrorDialogContent.vue | 1 + .../dialog/content/error/ReportIssuePanel.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/dialog/content/ExecutionErrorDialogContent.vue b/src/components/dialog/content/ExecutionErrorDialogContent.vue index 1c6bbab8fa..4201c6c76c 100644 --- a/src/components/dialog/content/ExecutionErrorDialogContent.vue +++ b/src/components/dialog/content/ExecutionErrorDialogContent.vue @@ -30,6 +30,7 @@ v-if="sendReportOpen" error-type="graphExecutionError" :extra-fields="[stackTraceField]" + :tags="{ exceptionMessage: props.error.exception_message }" />
}>() -const { defaultFields = ['Workflow', 'Logs', 'SystemStats', 'Settings'] } = - props +const { + defaultFields = ['Workflow', 'Logs', 'SystemStats', 'Settings'], + tags = {} +} = props const { t } = useI18n() const toast = useToast() @@ -168,7 +171,8 @@ const createCaptureContext = async (): Promise => { user: getUserInfo(), level: 'error', tags: { - errorType: props.errorType + errorType: props.errorType, + ...tags }, extra: { ...createFeedback(),