Skip to content

Commit e31670a

Browse files
emilyklarchmoj
andauthored
remove now-redundant argument from Plots.graphJson call
Co-authored-by: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com>
1 parent eb72222 commit e31670a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ plots.sendDataToCloud = function(gd) {
139139
name: 'data'
140140
});
141141

142-
hiddenformInput.node().value = plots.graphJson(gd, false);
142+
hiddenformInput.node().value = plots.graphJson(gd);
143143
hiddenform.node().submit();
144144
hiddenformDiv.remove();
145145

test/jasmine/tests/plots_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ describe('Test Plots', function() {
578578
};
579579

580580
Plotly.newPlot(gd, mock).then(function() {
581-
var str = Plots.graphJson(gd, false);
581+
var str = Plots.graphJson(gd);
582582
var obj = JSON.parse(str);
583583

584584
expect(obj.data).toEqual(mock.data);
@@ -612,7 +612,7 @@ describe('Test Plots', function() {
612612
};
613613

614614
Plotly.newPlot(gd, [trace]).then(function() {
615-
var str = Plots.graphJson(gd, false);
615+
var str = Plots.graphJson(gd);
616616
var obj = JSON.parse(str);
617617

618618
expect(obj.data[0].x).toEqual([1, 2, 3]);

0 commit comments

Comments
 (0)