mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix JSON import not working in the flag editor
oooops
This commit is contained in:
parent
670dc707a9
commit
a7d2a2c3d5
@ -234,13 +234,12 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
||||
if (App.FastFlags.Prop.ContainsKey(pair.Key) && !overwriteConflicting)
|
||||
continue;
|
||||
|
||||
// TODO - error message, i just had to hastily add this in
|
||||
// as i'm currently testing 2.7.0 for release and all translations
|
||||
// are already done
|
||||
if (pair.Value is not string)
|
||||
var val = pair.Value.ToString();
|
||||
|
||||
if (val is null)
|
||||
continue;
|
||||
|
||||
if (!ValidateFlagEntry(pair.Key, (string)pair.Value))
|
||||
if (!ValidateFlagEntry(pair.Key, val))
|
||||
continue;
|
||||
|
||||
App.FastFlags.SetValue(pair.Key, pair.Value);
|
||||
|
Loading…
Reference in New Issue
Block a user