Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xflow #1613

Merged
merged 7 commits into from
Jan 15, 2025
Merged

Xflow #1613

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix:条件节点+并行节点去掉默认值
昔梦 committed Jan 15, 2025
commit ebf5396ff23ab2e1c62a1ea8d37b830bb593ebc8
Original file line number Diff line number Diff line change
@@ -37,10 +37,9 @@ export default memo((props: any) => {

const renderTitle = (item, index) => {
const defTitle = item?.title || `事件${index}`;
// const title = parallelExtra?.titleKey
// ? item[parallelExtra?.titleKey]
// : defTitle;
const title = item[parallelExtra?.titleKey] ?? defTitle;
const title = parallelExtra?.titleKey
? item[parallelExtra?.titleKey]
: defTitle;
return (
<div className="item-header">
<div className="item-title">
Original file line number Diff line number Diff line change
@@ -32,10 +32,9 @@ export default memo((props: any) => {

const renderTitle = (item, index) => {
const defTitle = item?.title || `条件${index}`;
// const title = switchExtra?.titleKey
// ? item[switchExtra?.titleKey]
// : defTitle;
const title = item[switchExtra?.titleKey] ?? defTitle;
const title = switchExtra?.titleKey
? item[switchExtra?.titleKey]
: defTitle;
return (
<div className="item-header">
<div className="item-title">{title}</div>