File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/React.Core/RenderFunctions Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Collections . ObjectModel ;
3+ using System . Linq ;
24using System . Text ;
35
46namespace React . RenderFunctions
@@ -9,15 +11,15 @@ namespace React.RenderFunctions
911 /// </summary>
1012 public class ChainedRenderFunctions : IRenderFunctions
1113 {
12- private readonly IRenderFunctions [ ] _chainedFunctions ;
14+ private readonly ReadOnlyCollection < IRenderFunctions > _chainedFunctions ;
1315
1416 /// <summary>
1517 /// Constructor. Supports chained calls to multiple render functions by passing in a set of functions that should be called next.
1618 /// </summary>
1719 /// <param name="chainedFunctions">The chained render functions to call</param>
1820 public ChainedRenderFunctions ( params IRenderFunctions [ ] chainedFunctions )
1921 {
20- _chainedFunctions = chainedFunctions ;
22+ _chainedFunctions = chainedFunctions . Where ( x => x != null ) . ToList ( ) . AsReadOnly ( ) ;
2123 }
2224
2325 /// <summary>
You can’t perform that action at this time.
0 commit comments