Skip to content

Commit 5bd4095

Browse files
authored
Handle showSource config
Made changes according to code review feedback.
1 parent 69bc864 commit 5bd4095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ plots.previousPromises = function(gd) {
257257
* Add source links to your graph inside the 'showSources' config argument.
258258
*/
259259
plots.addLinks = function(gd) {
260-
if(gd._context.showLink === false) return;
260+
if(!gd._context.showLink || !gd._context.showSources) return;
261261

262262
var fullLayout = gd._fullLayout;
263263

0 commit comments

Comments
 (0)