File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -484,17 +484,17 @@ export class CdkTree<T, K = T>
484484 * This will be called by the first node that's rendered in order for the tree
485485 * to determine what data transformations are required.
486486 */
487- _setNodeTypeIfUnset ( newType : 'flat' | 'nested' ) {
488- const currentType = this . _nodeType . value ;
489-
490- if ( currentType === null ) {
491- this . _nodeType . next ( newType ) ;
492- } else if ( ( typeof ngDevMode === 'undefined' || ngDevMode ) && currentType !== newType ) {
493- console . warn (
494- `Tree is using conflicting node types which can cause unexpected behavior. ` +
495- `Please use tree nodes of the same type (e.g. only flat or only nested). ` +
496- `Current node type: "${ currentType } ", new node type "${ newType } ".` ,
497- ) ;
487+ _setNodeTypeIfUnset ( newType : 'flat' | 'nested' ) {
488+ const currentType = this . _nodeType . value ;
489+
490+ if ( currentType === null ) {
491+ this . _nodeType . next ( newType ) ;
492+ } else if ( ( typeof ngDevMode === 'undefined' || ngDevMode ) && currentType !== newType ) {
493+ console . warn (
494+ `Tree is using conflicting node types which can cause unexpected behavior. ` +
495+ `Please use tree nodes of the same type (e.g. only flat or only nested). ` +
496+ `Current node type: "${ currentType } ", new node type "${ newType } ".` ,
497+ ) ;
498498 }
499499 }
500500
You can’t perform that action at this time.
0 commit comments