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 1
1
using System ;
2
+ using System . Collections . ObjectModel ;
3
+ using System . Linq ;
2
4
using System . Text ;
3
5
4
6
namespace React . RenderFunctions
@@ -9,15 +11,15 @@ namespace React.RenderFunctions
9
11
/// </summary>
10
12
public class ChainedRenderFunctions : IRenderFunctions
11
13
{
12
- private readonly IRenderFunctions [ ] _chainedFunctions ;
14
+ private readonly ReadOnlyCollection < IRenderFunctions > _chainedFunctions ;
13
15
14
16
/// <summary>
15
17
/// Constructor. Supports chained calls to multiple render functions by passing in a set of functions that should be called next.
16
18
/// </summary>
17
19
/// <param name="chainedFunctions">The chained render functions to call</param>
18
20
public ChainedRenderFunctions ( params IRenderFunctions [ ] chainedFunctions )
19
21
{
20
- _chainedFunctions = chainedFunctions ;
22
+ _chainedFunctions = chainedFunctions . Where ( x => x != null ) . ToList ( ) . AsReadOnly ( ) ;
21
23
}
22
24
23
25
/// <summary>
You can’t perform that action at this time.
0 commit comments