Skip to content

Commit

Permalink
Removes version check before replacing editor object from config.
Browse files Browse the repository at this point in the history
  • Loading branch information
skttl committed Sep 7, 2019
1 parent 1c6bee4 commit 21ab290
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Skybrud.Umbraco.GridData/GridControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ public static GridControl Parse(GridArea area, JObject obj) {
Area = area
};

// As of Umbraco 7.3, information about the editor is no longer saved in the JSON, since these should be read from the configuration
if (UmbracoVersion.Current.Major > 7 || (UmbracoVersion.Current.Major == 7 && UmbracoVersion.Current.Minor >= 3)) Howdy.ReplaceEditorObjectFromConfig(control);
Howdy.ReplaceEditorObjectFromConfig(control);

// Parse the editor
control.Editor = obj.GetObject("editor", x => GridEditor.Parse(control, x));
Expand All @@ -322,4 +321,4 @@ public static GridControl Parse(GridArea area, JObject obj) {

}

}
}

0 comments on commit 21ab290

Please sign in to comment.