Skip to content

Commit 7636cb5

Browse files
author
Haowen You
committed
Change the OR conditon to AND for triggering addLinks logic
1 parent 5bd4095 commit 7636cb5

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 || !gd._context.showSources) return;
260+
if(!gd._context.showLink && !gd._context.showSources) return;
261261

262262
var fullLayout = gd._fullLayout;
263263

0 commit comments

Comments
 (0)