Skip to content

Commit a931393

Browse files
committed
fix CacheManager GetLocalizedString Key.Value Null
1 parent 6a85589 commit a931393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Services/CacheManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private static JsonLocalizationOptions GetJsonLocalizationOption()
242242
var sections = Instance.GetOrCreate(key, entry => option.GetJsonStringFromAssembly(assembly, cultureName));
243243
var items = sections.FirstOrDefault(kv => typeName.Equals(kv.Key, StringComparison.OrdinalIgnoreCase))?
244244
.GetChildren()
245-
.SelectMany(kv => new[] { new LocalizedString(kv.Key, kv.Value!, false, typeName) });
245+
.SelectMany(kv => new[] { new LocalizedString(kv.Key, kv.Value?? kv.Key, false, typeName) });
246246
#if NET8_0_OR_GREATER
247247
return items?.ToFrozenSet();
248248
#else

0 commit comments

Comments
 (0)