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
commit 9701b573e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 || '',