Skip to content

Commit 1df96b5

Browse files
committed
fix: workbook file prefix
1 parent 2a1d44c commit 1df96b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modify/chart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export class ModifyChart {
7272
const worksheetCb = (point: number, r: number, category: ChartCategory) => {
7373
return this.workbook.modify(this.rowValues(r, targetCol, mapData(point, category)))
7474
}
75-
76-
const chartCb = (slot.type !== undefined && GeneralHelper.propertyExists(this, slot.type))
75+
76+
const chartCb = (slot.type !== undefined && this[slot.type] !== undefined && typeof this[slot.type] === 'function')
7777
? (point: number | ChartPoint | ChartBubble | ChartValue, r: number, category: ChartCategory) => {
7878
return this[slot.type](r, targetCol, point, category, slot.tag, mapData)
7979
}

0 commit comments

Comments
 (0)