Skip to content
Snippets Groups Projects

fix(vector-map): correct handle click event on glyph element

Merged Miłosz Grocholewski requested to merge bugfix/MIN-106-glyph-click into development
6 files
+ 36
9
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -53,7 +53,7 @@ export const onMapLeftClick =
const type = featureAtPixel.get('type');
const id = featureAtPixel.get('id');
if(type === FEATURE_TYPE.ALIAS) {
if([FEATURE_TYPE.ALIAS, FEATURE_TYPE.GLYPH].includes(type)) {
await leftClickHandleAlias(dispatch)(featureAtPixel, modelId);
} else if (type === FEATURE_TYPE.REACTION) {
clickHandleReaction(dispatch)(modelElements, reactions, id, modelId);
Loading