This is an automated email from the ASF dual-hosted git repository.
SbloodyS pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 93cb9a26b7 [Fix-18448][UI] Guard workflowDefinition before reading
releaseState (#18670)
93cb9a26b7 is described below
commit 93cb9a26b70f7fec4bc20232d93a6647708358f8
Author: Adarsh Mishra <[email protected]>
AuthorDate: Tue Oct 6 08:27:17 2026 +0530
[Fix-18448][UI] Guard workflowDefinition before reading releaseState
(#18670)
---
.../src/views/projects/workflow/components/dag/index.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/index.tsx
b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/index.tsx
index d65a3e410b..54511d9ff6 100644
--- a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/index.tsx
+++ b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/index.tsx
@@ -127,7 +127,7 @@ export default defineComponent({
if (props.definition) {
return (
route.name === 'workflow-definition-detail' &&
- props.definition!.workflowDefinition.releaseState === 'ONLINE'
+ props.definition.workflowDefinition?.releaseState === 'ONLINE'
)
} else {
return false
@@ -149,7 +149,7 @@ export default defineComponent({
props.instance.state === 'STOP'
)
} else if (props.definition) {
- return props.definition!.workflowDefinition.releaseState === 'OFFLINE'
+ return props.definition.workflowDefinition?.releaseState === 'OFFLINE'
} else {
return false
}