@giteeteam/apps-team-components 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ import { proximaSdk, useListener } from '@giteeteam/proxima-sdk-js';
5
5
  import { message } from 'antd';
6
6
  import debug from 'debug';
7
7
  import { cloneDeep } from 'lodash-es';
8
+ import { WorkflowStatusType } from '../../../lib/global.js';
8
9
  import useCurrentUser from '../../../lib/hooks/useCurrentUser.js';
9
10
  import useWorkflowConfig from '../../../lib/hooks/useWorkflowConfig.js';
10
11
  import { i18n } from '../../../lib/i18n.js';
@@ -176,7 +177,8 @@ const TransitionPanel = ({ itemId, itemType, workspace, objectId, onTransitionSu
176
177
  if (flowHandlerActive) {
177
178
  if (transitionStep === TransitionStepType.SelectTransition) {
178
179
  const nextStateTransition = workflowData.transitions.find(t => t.source.id === target.key);
179
- if (nextStateTransition) {
180
+ const nextState = workflowData.nodes.find(node => node.id === target.key);
181
+ if (nextStateTransition && (nextState === null || nextState === void 0 ? void 0 : nextState.key) !== WorkflowStatusType.Finished) {
180
182
  setCurrentFlowHandler(undefined);
181
183
  setFlowTask(tasks.find(task => task.name === transitionText));
182
184
  setTransitionStep(TransitionStepType.SelectFlowHandler);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -108,5 +108,6 @@
108
108
  "workerDirectory": [
109
109
  "public"
110
110
  ]
111
- }
111
+ },
112
+ "packageManager": "pnpm@7.32.5+sha512.4395951a16c3553123c8693f9e350e9ce18824f602b5af158fb17c2d6ee10a53251544522e31e3003d3b1b9bf5422d25ca14f86e8d10053c552674ee9e33fd15"
112
113
  }