Skip to content

Commit

Permalink
Fix house image on update
Browse files Browse the repository at this point in the history
  • Loading branch information
JNaid00 committed Oct 25, 2023
1 parent 8d026e6 commit ab4dc0f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/apps/blazor-app/Components/Advanced/BuildYourHome.razor
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,14 @@
homeSize = currentReport.homeSize;

}
var editing = await ProtectedSessionStore.GetAsync<bool>("edit");
bool edit = editing.Value;
if(edit)
{
var rep = await ProtectedSessionStore.GetAsync<ReportModel>("currentReport");
ReportModel tempReport = rep.Value!;
homeSize = tempReport.homeSize;
}
if (systems.Count > 0)
{
SetGraphicValues();
Expand Down
10 changes: 10 additions & 0 deletions src/apps/blazor-app/Pages/AdvancedCalculations.razor
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,16 @@
}

}
if(selectedSystem != 3)
{
for(int i = 0; i < systems.Count; i++)
{
if (currentReport.systemId == systems[i].systemId)
{
selectedSystem = i;
}
}
}


} else {
Expand Down

0 comments on commit ab4dc0f

Please sign in to comment.