@topconsultnpm/sdkui-react 6.19.0-dev1.67 → 6.19.0-dev1.68
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.
Potentially problematic release.
This version of @topconsultnpm/sdkui-react might be problematic. Click here for more details.
|
@@ -71,6 +71,8 @@ const TMTaskForm = (props) => {
|
|
|
71
71
|
return task;
|
|
72
72
|
if (formMode !== FormModes.Create)
|
|
73
73
|
return task;
|
|
74
|
+
if (task.id && task.id > 0)
|
|
75
|
+
return task;
|
|
74
76
|
if (taskContext?.document) {
|
|
75
77
|
task.pdG = PdGs.DT;
|
|
76
78
|
task.iD1 = taskContext.document.tid;
|
|
@@ -83,8 +85,10 @@ const TMTaskForm = (props) => {
|
|
|
83
85
|
else if (taskContext?.dossier) {
|
|
84
86
|
task.pdG = PdGs.CF;
|
|
85
87
|
task.iD1 = taskContext.dossier.id;
|
|
86
|
-
if (currentTask)
|
|
88
|
+
if (currentTask) {
|
|
87
89
|
task.name = currentTask.name;
|
|
90
|
+
task.toID = 0;
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
93
|
else if (taskContext?.workItem) {
|
|
90
94
|
task.pdG = PdGs.DT;
|
|
@@ -108,8 +108,7 @@ const TMTasksView = (props) => {
|
|
|
108
108
|
setShowTaskForm(true);
|
|
109
109
|
setIsContextualCreate(isContextual ?? false);
|
|
110
110
|
// If a task is provided, set it as the current task to be processed
|
|
111
|
-
|
|
112
|
-
setCurrentTask(task);
|
|
111
|
+
setCurrentTask(task ?? null);
|
|
113
112
|
}, []);
|
|
114
113
|
// Updates the active tab index when the selected index changes
|
|
115
114
|
const onSelectedIndexChange = (index) => {
|