From 6e4a0cf42d6edcab4ce1809fca46e8a5fca84046 Mon Sep 17 00:00:00 2001 From: sealday Date: Thu, 25 Jul 2024 16:25:26 +0800 Subject: [PATCH] fix: workflow sync status now can be changed(using in your own risk), code mirror now support default value (#1387) Co-authored-by: sealday Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1387 --- packages/core/components/src/code-mirror/index.tsx | 4 ++-- .../src/client/features/webhook/WebhookManager.tsx | 10 ++++++---- .../features/webhook/collections/dispatchers.tsx | 6 ++++-- .../plugin-workflow/src/server/actions/workflows.ts | 2 +- .../src/server/features/webhook/webhooks.ts | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/core/components/src/code-mirror/index.tsx b/packages/core/components/src/code-mirror/index.tsx index 9b4a362b8..ad84c0a28 100644 --- a/packages/core/components/src/code-mirror/index.tsx +++ b/packages/core/components/src/code-mirror/index.tsx @@ -78,10 +78,10 @@ const completionSource = (context) => { return null; }; -export const CodeMirror = connect(({ value, onChange, ...otherProps }) => { +export const CodeMirror = connect(({ value, onChange, defaultValue, ...otherProps }) => { return (