NullValueHandling for fillScript

This commit is contained in:
Kyle Spearrin 2016-06-02 00:28:41 -04:00
parent ae5b637786
commit 7ab247db01

View file

@ -142,7 +142,7 @@ namespace Bit.iOS.Extension
|| ProviderType == UTTypeAppExtensionFillWebViewAction) || ProviderType == UTTypeAppExtensionFillWebViewAction)
{ {
var fillScript = new FillScript(Details); var fillScript = new FillScript(Details);
var scriptJson = JsonConvert.SerializeObject(fillScript); var scriptJson = JsonConvert.SerializeObject(fillScript, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
itemData = new NSDictionary(AppExtensionWebViewPageFillScript, scriptJson); itemData = new NSDictionary(AppExtensionWebViewPageFillScript, scriptJson);
} }
else if(ProviderType == UTTypeAppExtensionSaveLoginAction) else if(ProviderType == UTTypeAppExtensionSaveLoginAction)