Skip to content

Commit

Permalink
fix:条件节点+并行节点去掉默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
昔梦 committed Jan 15, 2025
1 parent c160c0b commit ebf5396
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ebf5396

Please sign in to comment.