Skip to content

Commit

Permalink
Fix for issue #27.
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrog committed Jan 24, 2024
1 parent 7c4d81a commit 925ae37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Geta.Optimizely.GenericLinks/PropertyLinkData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ public override object? Value

return _linkItem;
}

set
{
SetPropertyValue(value, delegate
{
var linkData = value as TLinkData;
if (linkData is not null || value is null)
{
_linkItem = linkData;
Link = linkData;
}
else
{
Expand Down Expand Up @@ -209,7 +209,7 @@ public override void MakeReadOnly()
if (!IsReadOnly)
_linkItem?.SetModified(false);

base.MakeReadOnly();
base.MakeReadOnly();
}

public override PropertyData Copy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,17 @@ public override object? Value
{
LoadData(base.LongString);
}

return _linkItemCollection;
}
}
set
{
SetPropertyValue(value, delegate
{
var collection = value as LinkDataCollection<TLinkData>;
if (collection is not null || value is null)
{
_linkItemCollection = collection;
Links = collection;
}
else
{
Expand Down

0 comments on commit 925ae37

Please sign in to comment.