You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException($"Could not resolve these content types for the Block Editor property: {string.Join(",",allContentTypes.Where(x =>x.Value==null).Select(x =>x.Key))}");
91
91
}
92
92
93
-
//Ensure that these content types have dependencies added
94
-
foreach(varcontentTypeinallContentTypes.Values)
93
+
//Ensure that these content types have dependencies added
_logger.LogDebug("Mapped {Key} value '{PropertyValue}' to '{ParsedValue}' using {PropertyValueConnectorType} for {PropertyType}.",key,block.PropertyValues[key],parsedValue,propertyValueConnector.GetType(),innerPropertyType.Alias);
thrownewInvalidOperationException($"Could not resolve these content types for the Block Editor property: {string.Join(",",allContentTypes.Where(x =>x.Value==null).Select(x =>x.Key))}");
// pass the artifact value and property type to the connector to get a real value from the artifact
@@ -208,11 +209,13 @@ public override object FromArtifact(string value, IPropertyType propertyType, ob
208
209
{
209
210
block.PropertyValues[key]=convertedValue;
210
211
}
212
+
211
213
_logger.LogDebug("Mapped {Key} value '{PropertyValue}' to '{ConvertedValue}' using {PropertyValueConnectorType} for {PropertyType}.",key,innerValue,convertedValue,propertyValueConnector.GetType(),innerPropertyType.Alias);
212
214
}
213
215
else
214
216
{
215
217
block.PropertyValues[key]=innerValue;
218
+
216
219
_logger.LogDebug("{Key} value was null. Setting value as null without conversion.",key);
217
220
}
218
221
}
@@ -271,35 +274,35 @@ public class BlockEditorValue
271
274
/// JObject is fine for transferring this over.
272
275
/// </summary>
273
276
[JsonProperty("layout")]
274
-
publicJObjectLayout{get;set;}
277
+
publicJObject?Layout{get;set;}
275
278
276
279
/// <summary>
277
280
/// This contains all the blocks created in the block editor.
/// This is the property values defined on the block.
299
302
/// These can be anything so we have to use a dictionary to represent them and JsonExtensionData attribute ensures all otherwise unmapped properties are stored here.
0 commit comments