feat: add datasets detail context and provider for improved data vali… (#16451)

This commit is contained in:
Wu Tianwei
2025-03-24 14:30:26 +08:00
committed by GitHub
parent 83cd14104d
commit 9701b573e0
7 changed files with 192 additions and 35 deletions

View File

@@ -160,7 +160,7 @@ const Header: FC = () => {
const { mutateAsync: publishWorkflow } = usePublishWorkflow(appID!)
const onPublish = useCallback(async (params?: PublishWorkflowParams) => {
if (handleCheckBeforePublish()) {
if (await handleCheckBeforePublish()) {
const res = await publishWorkflow({
title: params?.title || '',
releaseNotes: params?.releaseNotes || '',