Skip to content

Commit

Permalink
fix: SENSEBEE-7977: 【label-bee】单步骤创建的时候,toolHeader 上方的旋转点击不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
laoluo committed Oct 19, 2021
1 parent caf4644 commit d8de761
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ const HeaderOption: React.FC<IProps> = (props) => {
const isBegin = props.isBegin || stepInfo?.tool === EToolName.Tag;

const updateRotate = () => {
if (stepInfo.dataSourceStep !== 0) {
/**
* 1. 非第一步无法旋转
* 2. 单步骤不存在 dataSourceStep
*/
if (stepInfo.dataSourceStep !== 0 && stepInfo.dataSourceStep !== undefined) {
return;
}

Expand Down

0 comments on commit d8de761

Please sign in to comment.