Only empty out editor if it exists on new modal

This commit is contained in:
Pat Hartl 2023-03-15 21:00:08 -05:00
parent 770c31e0e9
commit 58d34baa51

View file

@ -139,7 +139,8 @@
GameId = Game.Id
};
await Editor.SetValue("");
if (Editor != null)
await Editor.SetValue("");
}
else
Script = script;