Gitlab CSE Unil

Commit 7a50f341 authored by Julien Furrer's avatar Julien Furrer
Browse files

Fixed bug when rename annotable

parent 0ca01008
......@@ -514,9 +514,11 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
// Update the name in the ImageManager,
// done for any anobj
var aomModel = me._anObjMgr.anobjs.findWhere({id:data.id});
if (aomModel) {
aomModel.set('name', data.name);
if (me._anObjMgr) {
var aomModel = me._anObjMgr.anobjs.findWhere({id:data.id});
if (aomModel) {
aomModel.set('name', data.name);
}
}
});
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment