@giteeteam/apps-team-components 1.8.0 → 1.8.1
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';
|
|
@@ -276,7 +277,8 @@ const TransitionPanel = ({ itemId, itemType, workspace, objectId, onTransitionSu
|
|
|
276
277
|
if (flowHandlerActive) {
|
|
277
278
|
if (transitionStep === TransitionStepType.SelectTransition) {
|
|
278
279
|
const nextStateTransition = workflowData.transitions.find(t => t.source.id === target.key);
|
|
279
|
-
|
|
280
|
+
const nextState = workflowData.nodes.find(node => node.id === target.key);
|
|
281
|
+
if (nextStateTransition && (nextState === null || nextState === void 0 ? void 0 : nextState.key) !== WorkflowStatusType.Finished) {
|
|
280
282
|
setCurrentFlowHandler(undefined);
|
|
281
283
|
setFlowTask(tasks.find(task => task.name === transitionText));
|
|
282
284
|
setTransitionStep(TransitionStepType.SelectFlowHandler);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@giteeteam/apps-team-components",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Gitee team components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -106,5 +106,6 @@
|
|
|
106
106
|
"workerDirectory": [
|
|
107
107
|
"public"
|
|
108
108
|
]
|
|
109
|
-
}
|
|
110
|
-
|
|
109
|
+
},
|
|
110
|
+
"packageManager": "pnpm@7.32.5+sha512.4395951a16c3553123c8693f9e350e9ce18824f602b5af158fb17c2d6ee10a53251544522e31e3003d3b1b9bf5422d25ca14f86e8d10053c552674ee9e33fd15"
|
|
111
|
+
}
|