Skip to content

Commit

Permalink
Fix injector ngeoSnappingSource
Browse files Browse the repository at this point in the history
  • Loading branch information
llienher committed Jul 25, 2019
1 parent 7880e49 commit 99dfa00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contribs/gmf/src/editing/Snapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const exports = function($http, $q, $rootScope, $injector, $timeout, gmfThemes,
* @type {ol.source.Vector | undefined}
* @private
*/
this.ngeoSnappingSource_ = this.injector_.get('ngeoSnappingSource') || undefined;
this.ngeoSnappingSource_ = this.injector_.has('ngeoSnappingSource') ? this.injector_.get('ngeoSnappingSource') : undefined;

};

Expand Down

0 comments on commit 99dfa00

Please sign in to comment.