{
- const modifiedProcessModelId: String = (row as any).id.replace('/', ':');
+ const rows = processModels.map((row: ProcessModel) => {
+ const modifiedProcessModelId: String = row.id.replace('/', ':');
return (
-
+
- {(row as any).id}
+ {row.id}
|
- {(row as any).display_name} |
+ {row.display_name} |
);
});
@@ -85,21 +85,19 @@ export default function ProcessGroupShow() {
if (processGroup === null) {
return null;
}
- const rows = processGroups.map((row) => {
- const modifiedProcessGroupId: String = modifyProcessModelPath(
- (row as any).id
- );
+ const rows = processGroups.map((row: ProcessGroup) => {
+ const modifiedProcessGroupId: String = modifyProcessModelPath(row.id);
return (
-
+
- {(row as any).id}
+ {row.id}
|
- {(row as any).display_name} |
+ {row.display_name} |
);
});
@@ -121,15 +119,13 @@ export default function ProcessGroupShow() {
if (processGroup && pagination) {
const { page, perPage } = getPageInfoFromSearchParams(searchParams);
- const modifiedProcessGroupId = modifyProcessModelPath(
- (processGroup as any).id
- );
+ const modifiedProcessGroupId = modifyProcessModelPath(processGroup.id);
return (
<>
@@ -159,7 +155,7 @@ export default function ProcessGroupShow() {
perPage={perPage}
pagination={pagination}
tableToDisplay={buildModelTable()}
- path={`/admin/process-groups/${(processGroup as any).id}`}
+ path={`/admin/process-groups/${processGroup.id}`}
/>
@@ -168,7 +164,7 @@ export default function ProcessGroupShow() {
perPage={perPage}
pagination={pagination}
tableToDisplay={buildGroupTable()}
- path={`/admin/process-groups/${(processGroup as any).id}`}
+ path={`/admin/process-groups/${processGroup.id}`}
/>
>
diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx
index 92961b0a..3bec8aef 100644
--- a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx
+++ b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx
@@ -36,7 +36,6 @@ export default function ProcessInstanceLogList() {
// return null;
const rows = processInstanceLogs.map((row) => {
const rowToUse = row as any;
- console.log(`rowToUse: ${rowToUse}`);
return (
{rowToUse.bpmn_process_identifier} |
diff --git a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx
index a60a42f0..85668d45 100644
--- a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx
+++ b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx
@@ -268,7 +268,7 @@ export default function ProcessModelEditDiagram() {
});
event.eventBus.fire('spiff.json_files.returned', { options });
} else {
- console.log('There is no process Model.');
+ console.error('There is no process Model.');
}
};
@@ -281,10 +281,9 @@ export default function ProcessModelEditDiagram() {
options.push({ label: ref.name, value: ref.id });
});
});
- console.log('Options', options);
event.eventBus.fire('spiff.dmn_files.returned', { options });
} else {
- console.log('There is no process model.');
+ console.error('There is no process model.');
}
};