Skip to content

Commit ca5e39a

Browse files
authored
warn_bad_name should not use global name
warn_bad_name in get_name should use the local variable name_or_data not name
1 parent 782e9ce commit ca5e39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/static/notebook/js/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ define([
954954
**/
955955

956956
if(typeof(name_or_data) === 'string'){
957-
warn_bad_name(name);
957+
warn_bad_name(name_or_data);
958958
if(this.exists(name_or_data)){
959959
return name_or_data;
960960
} else {

0 commit comments

Comments
 (0)