Skip to content

Commit 72612c6

Browse files
committed
Trim PnP labels before matching
1 parent 3dc9b68 commit 72612c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/pnp/findStepColumns.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ export function findStepColumns(
2020
const possibleSteps = sheet.stepLabels
2121
.walkRight()
2222
.filter((cell) => !!cell.asString)
23-
.map((cell) => ({ label: cell.asString!, column: cell.column, cell }))
23+
.map((cell) => ({
24+
label: cell.asString!.trim(),
25+
column: cell.column,
26+
cell,
27+
}))
2428
.toArray();
2529
possibleSteps.forEach(({ label, column, cell }, index) => {
2630
if (index === possibleSteps.length - 1) {

0 commit comments

Comments
 (0)