Skip to content

Commit c610b60

Browse files
committed
Fix setting of title field
1 parent c006a90 commit c610b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jasmine/tests/plot_api_react_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ describe('@noCIdep Plotly.react', function() {
183183
Plotly.newPlot(gd, data, layout)
184184
.then(countPlots)
185185
.then(function() {
186-
layout.title.text = 'XXXXX';
186+
layout.title = { text: 'XXXXX' };
187187
layout.hovermode = 'closest';
188188
data[0].marker = {color: 'rgb(0, 100, 200)'};
189189
return Plotly.react(gd, data, layout);

0 commit comments

Comments
 (0)