Skip to content

Commit 09801d6

Browse files
committed
PATCH: Fix typescript type for referenceGrandParentNodeType to allow null
as called with ``` const referenceGrandParentNodeType = referenceParentNode ? referenceParentNode.nodeType : null; ```
1 parent f6055ca commit 09801d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/neos-ui-contentrepository/src/registry/NodeTypesRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default class NodeTypesRegistry extends SynchronousRegistry<NodeType> {
105105
return [];
106106
}
107107

108-
public getAllowedNodeTypesTakingAutoCreatedIntoAccount(isSubjectNodeAutocreated: boolean, referenceParentName: string, referenceParentNodeType: string, referenceGrandParentNodeType: string, role: string): NodeTypeName[] {
108+
public getAllowedNodeTypesTakingAutoCreatedIntoAccount(isSubjectNodeAutocreated: boolean, referenceParentName: string, referenceParentNodeType: string, referenceGrandParentNodeType: string | null, role: string): NodeTypeName[] {
109109
let result;
110110
if (isSubjectNodeAutocreated) {
111111
if (!referenceGrandParentNodeType) {

0 commit comments

Comments
 (0)