From b41ee2488419be2e62941b78dad9515662e9a2bd Mon Sep 17 00:00:00 2001
From: Darcy Ye <darcyye@silverhand.io>
Date: Mon, 22 Aug 2022 11:30:22 +0800
Subject: [PATCH] refactor(connector): update connector-schemas

---
 packages/connector-schemas/src/error.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/connector-schemas/src/error.ts b/packages/connector-schemas/src/error.ts
index 1b5f2fefe..22edffcfd 100644
--- a/packages/connector-schemas/src/error.ts
+++ b/packages/connector-schemas/src/error.ts
@@ -19,6 +19,6 @@ export class ConnectorError extends Error {
     const { message, data } = payload ?? {};
     super(message ?? 'Connector error occurred.');
     this.code = code;
-    this.data = data;
+    this.data = payload ?? {};
   }
 }