Skip to content

Commit

Permalink
Update ToothItemViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LazuliKao committed Mar 11, 2023
1 parent f6075ee commit c69a6c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LipUI/ViewModels/ToothItemViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public ToothItemViewModel(Func<ToothItemViewModel, Task> showInfo, LipPackageSim
Version = package.Version;
Tooth = package.Tooth;
Information = package.Information;
Author = new ToothItemTagViewModel() { Tag = Information.Author };
}
public ToothItemViewModel(
Func<ToothItemViewModel, Task> showInfo, LipRegistry.LipRegistryItem item)
Expand All @@ -42,7 +43,7 @@ public ToothItemViewModel(
[ObservableProperty] string _tooth = string.Empty;
[ObservableProperty] string _version = string.Empty;
[ObservableProperty] ToothItemTagViewModel[] _tags = Array.Empty<ToothItemTagViewModel>();
[ObservableProperty] ToothItemTagViewModel? _author;
[ObservableProperty] ToothItemTagViewModel _author;

public partial class ToothItemTagViewModel : ObservableObject
{
Expand Down

0 comments on commit c69a6c2

Please sign in to comment.