CDN Integration for Admin
This commit is contained in:
@@ -75,6 +75,10 @@ public class EditModel : AdminPageModel
|
||||
|
||||
// Handle checkbox binding
|
||||
Mob.IsEnabled = Request.Form.ContainsKey("Mob.IsEnabled");
|
||||
|
||||
// Ensure nullable strings are never null
|
||||
Mob.Description ??= "";
|
||||
Mob.TintColor ??= "#ffffff";
|
||||
|
||||
if (string.IsNullOrWhiteSpace(Mob.Name))
|
||||
{
|
||||
@@ -90,7 +94,7 @@ public class EditModel : AdminPageModel
|
||||
var newMob = new DungeonMobDefinition
|
||||
{
|
||||
Name = Mob.Name + " (Copy)",
|
||||
Description = Mob.Description,
|
||||
Description = Mob.Description ?? "",
|
||||
Type = Mob.Type,
|
||||
Category = Mob.Category,
|
||||
MinTier = Mob.MinTier,
|
||||
|
||||
Reference in New Issue
Block a user