Skip to content

Commit 3084223

Browse files
authored
Remove outer function wrapper (#889)
We remove the outer function wrapper from the default value for xComponentsCreationMethod because `vz_line_chart.stepX` is already a valid value for the property. Creating a function that returns `vz_line_chart.stepX` results in a bug.
1 parent 91f5374 commit 3084223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorboard/components/vz_line_chart/vz-line-chart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ Polymer({
355355
_attached) {
356356
// Find the actual xComponentsCreationMethod.
357357
if (!xType && !xComponentsCreationMethod) {
358-
xComponentsCreationMethod = () => vz_line_chart.stepX;
358+
xComponentsCreationMethod = vz_line_chart.stepX;
359359
} else if (xType) {
360360
xComponentsCreationMethod = () =>
361361
vz_line_chart.getXComponents(xType);

0 commit comments

Comments
 (0)