Skip to content

Commit

Permalink
PageReferences are allowed to be null.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleStan committed Jun 20, 2024
1 parent 5759852 commit 11f2aae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Yafc.Model/Serialization/ValueSerializers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ public override void WriteToJson(Utf8JsonWriter writer, PageReference? value) {
public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, PageReference? value) {
writer.WriteManagedReference(value);
}

public override bool CanBeNull => true;
}

internal class TypeSerializer : ValueSerializer<Type> {
Expand Down

0 comments on commit 11f2aae

Please sign in to comment.