diff --git a/Runtime/Ui/ViewStack/Instructions/HideInstruction.cs b/Runtime/Ui/ViewStack/Instructions/HideInstruction.cs index d37ac35..7256dce 100644 --- a/Runtime/Ui/ViewStack/Instructions/HideInstruction.cs +++ b/Runtime/Ui/ViewStack/Instructions/HideInstruction.cs @@ -80,8 +80,6 @@ private void HandlePopup(IViewContext context) if (!pupupFound) { - UnityEngine.Debug.LogError($"Tried to Hide {entryId} as Popup, " + - $"but it was not showing on the first place, at {nameof(HideInstruction)}"); return; } @@ -90,7 +88,10 @@ private void HandlePopup(IViewContext context) private Task HandleNonPopup(IViewContext context, CancellationToken cancellationToken) { - currentContextRepository.Clear(); + if (context.ViewId == entryId) + { + currentContextRepository.Clear(); + } List hideTasks = new List();