We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f1615f commit b2515ecCopy full SHA for b2515ec
src/BootstrapBlazor/Components/Display/Display.razor.cs
@@ -128,13 +128,10 @@ private async Task<string> FormatText([DisallowNull] TValue value)
128
private async Task<string> FormatValueString()
129
{
130
string? ret = Value?.ToString();
131
- if (!string.IsNullOrEmpty(ret))
+ var lookup = await GetLookup();
132
+ if (lookup != null)
133
- var lookup = await GetLookup();
134
- if (lookup != null)
135
- {
136
- ret = lookup.FirstOrDefault(i => i.Value.Equals(ret, LookupStringComparison))?.Text;
137
- }
+ ret = lookup.FirstOrDefault(i => i.Value.Equals(ret, LookupStringComparison))?.Text;
138
}
139
return ret ?? string.Empty;
140
0 commit comments