From 54dbe9ff28fde9788caaa627e1ea83221efd872e Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 21 Sep 2018 20:14:25 -0500 Subject: [PATCH] undo remove nulls from api (breaks react-table) ref #505 --- .../Extensions/ConfigureServicesCollection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs b/src/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs index 4ffde532b..40d351559 100644 --- a/src/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs +++ b/src/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs @@ -37,8 +37,8 @@ private static void AddMvcCustom(this IServiceCollection services) => .SetCompatibilityVersion(CompatibilityVersion.Version_2_1) .AddJsonOptions(opts => { - opts.SerializerSettings.NullValueHandling = NullValueHandling.Ignore; - opts.SerializerSettings.ContractResolver = new SkipEmptyContractResolver(); + //opts.SerializerSettings.NullValueHandling = NullValueHandling.Ignore; + //opts.SerializerSettings.ContractResolver = new SkipEmptyContractResolver(); }); private static void AddRoutingCustom(this IServiceCollection services) =>