Skip to content

Commit fc9e71f

Browse files
committed
before changes to address data without session id
1 parent b8f39d3 commit fc9e71f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/GraphvizProcessing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const loadAndSortData = (csvData: string): CSVRow[] => {
2727
const transformedData = parsedData.map(row => ({
2828
'Session Id': row['Session Id'],
2929
'Time': row['Time'],
30-
'Step Name': row['Step Name'], //|| 'DoneButton',
30+
'Step Name': row['Step Name'],// || 'DoneButton',
3131
'Outcome': row['Outcome'],
3232
'CF (Workspace Progress Status)': row['CF (Workspace Progress Status)'],
3333
'Problem Name': row['Problem Name'],
@@ -53,7 +53,7 @@ export const createStepSequences = (sortedData: CSVRow[], selfLoops: boolean): {
5353
return sortedData.reduce((acc, row) => {
5454
const sessionId = row['Session Id'];
5555
if (!acc[sessionId]) acc[sessionId] = [];
56-
56+
// console.log(acc['stepName'], sessionId)
5757
const stepName = row['Step Name'];
5858
if (selfLoops || acc[sessionId].length === 0 || acc[sessionId][acc[sessionId].length - 1] !== stepName) {
5959
acc[sessionId].push(stepName);

0 commit comments

Comments
 (0)