skttl / umbraco-matryoshka

Matryoshka enables you to layer your document type properties in tabs and groups
MIT License
13 stars 10 forks source link

Console error when editing doctype #44

Closed FransdeJong closed 3 years ago

FransdeJong commented 3 years ago

There is a error when editing a doctype. The controller tries to find stuff that isn't there in the doctype editor. We should prevent the controller from running in the doctype editor.

Error:

angular.js?cdv=1:15635 TypeError: Cannot read property 'nodeName' of undefined
    at Object.<anonymous> (groupseparator.controller.js?cdv=1:19)
    at Object.invoke (angular.js?cdv=1:5208)
    at $controllerInit (angular.js?cdv=1:11772)
    at nodeLinkFn (angular.js?cdv=1:10585)
    at compositeLinkFn (angular.js?cdv=1:9900)
    at publicLinkFn (angular.js?cdv=1:9765)
    at Object.link (angular.js?cdv=1:29889)
    at angular.js?cdv=1:1391
    at invokeLinkFn (angular.js?cdv=1:11334)
    at nodeLinkFn (angular.js?cdv=1:10653) "<div ng-include="propertyEditorView" class="ng-scope">"
skttl commented 3 years ago

Fixed in 3ffe522