Skip to content

Commit

Permalink
Fix #562 - Also check the propertyEditors
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Oct 31, 2023
1 parent 2eb8b60 commit c5db3b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uSync.Core/Serialization/Serializers/DataTypeSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ protected override SyncAttempt<IDataType> DeserializeCore(XElement node, SyncSer
if (editorAlias != item.EditorAlias)
{
// change the editor type.....
var newEditor = _dataEditors.FirstOrDefault(x => x.Alias.InvariantEquals(editorAlias));
var newEditor = _dataEditors.FirstOrDefault(x => x.Alias.InvariantEquals(editorAlias))
?? _propertyEditors.FirstOrDefault(x => x.Alias.InvariantEquals(editorAlias));

if (newEditor != null)
{
details.AddUpdate("EditorAlias", item.EditorAlias, editorAlias, "EditorAlias");
Expand Down

0 comments on commit c5db3b5

Please sign in to comment.