From 2267dcb76819ecc36e3389b0cbc11d98090619da Mon Sep 17 00:00:00 2001 From: sbwalker Date: Sun, 18 Feb 2024 10:27:12 -0500 Subject: [PATCH] ensure PageState and ModuleState are passed to ModuleMessage in the event of an unhandled module exception --- Oqtane.Client/UI/RenderModeBoundary.razor | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Oqtane.Client/UI/RenderModeBoundary.razor b/Oqtane.Client/UI/RenderModeBoundary.razor index 71ca8f3f..4e83b473 100644 --- a/Oqtane.Client/UI/RenderModeBoundary.razor +++ b/Oqtane.Client/UI/RenderModeBoundary.razor @@ -4,12 +4,12 @@ @inject ILogService LoggingService @inherits ErrorBoundary -@if (CurrentException is null) -{ - @if (ModuleType != null) - { - - + + + @if (CurrentException is null) + { + @if (ModuleType != null) + { @if (!string.IsNullOrEmpty(_messageContent) && _messagePosition == "top") { @@ -23,17 +23,17 @@ { } - - - } -} -else -{ - @if (!string.IsNullOrEmpty(_error)) - { - - } -} + } + } + else + { + @if (!string.IsNullOrEmpty(_error)) + { + + } + } + + @code { private Type ModuleType { get; set; }