refactor(ivy): update context discovery to prep for dir merge (#26262)
PR Close #26262
This commit is contained in:

committed by
Jason Aden

parent
51dfdd5dd1
commit
8f25321787
@ -29,11 +29,11 @@ export function getOrCreatePlayerContext(target: {}, context?: LContext | null):
|
||||
'Only elements that exist in an Angular application can be used for player access');
|
||||
}
|
||||
|
||||
const {lViewData, lNodeIndex} = context;
|
||||
const value = lViewData[lNodeIndex];
|
||||
const {lViewData, nodeIndex} = context;
|
||||
const value = lViewData[nodeIndex];
|
||||
let stylingContext = value as StylingContext;
|
||||
if (!Array.isArray(value)) {
|
||||
stylingContext = lViewData[lNodeIndex] = createEmptyStylingContext(value as LElementNode);
|
||||
stylingContext = lViewData[nodeIndex] = createEmptyStylingContext(value as LElementNode);
|
||||
}
|
||||
return stylingContext[StylingIndex.PlayerContext] || allocPlayerContext(stylingContext);
|
||||
}
|
||||
|
Reference in New Issue
Block a user