mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Fixed nonregistered model bug in wiget manager
This commit is contained in:
parent
3c866ea412
commit
73380ca442
@ -78,7 +78,7 @@
|
|||||||
|
|
||||||
WidgetManager.prototype.get_model = function (widget_id) {
|
WidgetManager.prototype.get_model = function (widget_id) {
|
||||||
var model = this._model_instances[widget_id];
|
var model = this._model_instances[widget_id];
|
||||||
if (model.id == widget_id) {
|
if (model !== undefined && model.id == widget_id) {
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user