mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Improve exception.
This commit is contained in:
parent
159557b73c
commit
50267e9364
@ -53,7 +53,15 @@ const TopicFeatureFactory = {
|
||||
const { icon: Icon } = TopicFeatureFactory._featuresMetadataById.filter(
|
||||
(elem) => elem.id === model.getType(),
|
||||
)[0];
|
||||
return new Icon(topic, model, readOnly);
|
||||
|
||||
// Temporal catch to idenfify bug. Please, remove.
|
||||
let result;
|
||||
try {
|
||||
result = new Icon(topic, model, readOnly);
|
||||
} catch (e) {
|
||||
throw new Error(`${e} - ${JSON.stringify(model)}`);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user