fix(Database) Fixed refresh bug. Fixed wrong data in database

This commit is contained in:
2022-04-03 16:17:32 -04:00
parent b5ea2ec833
commit 8584570a1e
24 changed files with 363 additions and 495 deletions
+5 -7
View File
@@ -7,26 +7,24 @@
@inject IEntityDialogService entityDialogService
@if (entity == null)
@if (EntityId == null)
{
<div>Add a entity</div>
}
else
{
<button class="entityLabel @entity.Descriptive.ToLower()" @onclick="EntityLabelClicked">@entity.Info().Name</button>
<button class="entityLabel @Entity.Descriptive.ToLower()" @onclick="EntityLabelClicked">@Entity.Info().Name</button>
}
@code {
[Parameter] public string EntityId { get; set; }
private EntityModel entity = null;
private EntityModel Entity => DATA.Get()[EntityId];
protected override void OnInitialized()
{
entity = DATA.Get()[EntityId];
Console.Write(entity.Info().Name);
Console.Write(Entity.Info().Name);
}
void EntityLabelClicked()