Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed Apr 26, 2020
1 parent c4d3bbc commit 4e81553
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/inputParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ function parseStyles(
}
for (const prop of Object.keys(styleOptions) as StyleProp[]) {
if (prop === 'columnStyles') {
const global = dInput.columnStyles
const document = dInput.columnStyles
const current = dInput.columnStyles
const global = gInput[prop]
const document = dInput[prop]
const current = cInput[prop]
styleOptions.columnStyles = assign({}, global, document, current)
} else {
const allOptions = [gInput, dInput, cInput]
Expand All @@ -195,7 +195,7 @@ function parseHooks(
didDrawPage: [] as PageHook[],
}
for (const options of allOptions) {
if (options.didDrawCell) result.didDrawCell.push(options.didDrawCell)
if (options.didParseCell) result.didParseCell.push(options.didParseCell)
if (options.willDrawCell) result.willDrawCell.push(options.willDrawCell)
if (options.didDrawCell) result.didDrawCell.push(options.didDrawCell)
if (options.didDrawPage) result.didDrawPage.push(options.didDrawPage)
Expand Down

0 comments on commit 4e81553

Please sign in to comment.