mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 20:28:46 -04:00
Refactor
This commit is contained in:
parent
b3e2dd3994
commit
b6fcbac030
1 changed files with 2 additions and 3 deletions
|
@ -189,8 +189,7 @@ namespace DiscordChatExporter.Gui.ViewModels
|
|||
foreach (var channel in textChannels)
|
||||
{
|
||||
// Get category
|
||||
var category = categoryChannels.FirstOrDefault(c => c.Id == channel.ParentId)?.Name ??
|
||||
"<no category>";
|
||||
var category = categoryChannels.FirstOrDefault(c => c.Id == channel.ParentId)?.Name;
|
||||
|
||||
// Create channel view model
|
||||
var channelViewModel = _viewModelFactory.CreateChannelViewModel();
|
||||
|
|
Loading…
Reference in a new issue