From f8b792beb0b911ed5321a206d057ae6f3e7df507 Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Mon, 6 May 2024 16:44:04 +0200 Subject: [PATCH] fixed startup crash issues --- .../Local/LocalDrawingSessionActor.cs | 4 ++-- .../Components/Layout/NavMenu.razor | 18 ++++++++++++++++++ src/DrawTogether/Components/Pages/Home.razor | 9 +++++---- src/DrawTogether/Components/Pages/Paint.razor | 15 +++++---------- 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/src/DrawTogether.Actors/Local/LocalDrawingSessionActor.cs b/src/DrawTogether.Actors/Local/LocalDrawingSessionActor.cs index 3b6fd7f..0307e43 100644 --- a/src/DrawTogether.Actors/Local/LocalDrawingSessionActor.cs +++ b/src/DrawTogether.Actors/Local/LocalDrawingSessionActor.cs @@ -82,10 +82,10 @@ public GetLocalActorHandle(DrawingSessionId drawingSessionId) private readonly IMaterializer _materializer = Context.System.Materializer(); private IActorRef _debouncer = ActorRefs.Nobody; - public LocalDrawingSessionActor(DrawingSessionId drawingSessionId, + public LocalDrawingSessionActor(string drawingSessionId, IRequiredActor drawingSessionActor) { - _drawingSessionId = drawingSessionId; + _drawingSessionId = new DrawingSessionId(drawingSessionId); _drawingSessionActor = drawingSessionActor.ActorRef; } diff --git a/src/DrawTogether/Components/Layout/NavMenu.razor b/src/DrawTogether/Components/Layout/NavMenu.razor index 0416144..262176d 100644 --- a/src/DrawTogether/Components/Layout/NavMenu.razor +++ b/src/DrawTogether/Components/Layout/NavMenu.razor @@ -26,6 +26,16 @@ + +