CDN Integration for Admin
This commit is contained in:
@@ -49,6 +49,11 @@ public class EditModel : AdminPageModel
|
||||
Item.IsEnabled = Request.Form.ContainsKey("Item.IsEnabled");
|
||||
Item.Stackable = Request.Form.ContainsKey("Item.Stackable");
|
||||
Item.IsTeleportScroll = Request.Form.ContainsKey("Item.IsTeleportScroll");
|
||||
|
||||
// Ensure nullable strings are never null
|
||||
Item.Description ??= "";
|
||||
Item.SpritePath ??= "";
|
||||
Item.TintColor ??= "#ffffff";
|
||||
|
||||
if (string.IsNullOrWhiteSpace(Item.Name))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user