Skip to content

Commit

Permalink
fix: Allow for empty actionsToIgnore list
Browse files Browse the repository at this point in the history
  • Loading branch information
dworthen committed Jun 12, 2018
1 parent b7d45f1 commit 05da838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlazorRealmReduxDevTools/HandleReduxDevTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Dispatcher<TState> Handle(Store<TState> store, Dispatcher<TState> next)
return a.State;
default:
TState nextState = next(action);
if(nextState != null && Array.IndexOf(ActionsToIgnore, action.GetType()) == -1)
if (nextState != null && (ActionsToIgnore == null || Array.IndexOf(ActionsToIgnore, action.GetType()) == -1))
{
History.Add(new Tuple<string, string>(UriHelper.GetAbsoluteUri(), JsonUtil.Serialize(nextState)));
ReduxDevToolsInterop.Send(action, nextState);
Expand Down

0 comments on commit 05da838

Please sign in to comment.