Skip to content

Commit 8002538

Browse files
chihuahuanfelt
authored andcommitted
Remove outer function wrapper (tensorflow#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 dfac0e7 commit 8002538

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

Lines changed: 1 addition & 1 deletion
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)