From 1271e7df2c8d05ed46865a335c2085d3a9318341 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sun, 2 Nov 2025 17:07:10 +0100 Subject: [PATCH] fix: add updatedActivityId watcher to ActivityMonitor component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add updatedActivityId method to watch for changes to activityId property - When activityId is set/updated, automatically hydrate the activity and enable polling - This allows the activity monitor to display content when activityId is bound from parent component - Fixes issue where activity monitor was empty because activity wasn't loaded 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Livewire/ActivityMonitor.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Livewire/ActivityMonitor.php b/app/Livewire/ActivityMonitor.php index 54034ef7a..c30a46d62 100644 --- a/app/Livewire/ActivityMonitor.php +++ b/app/Livewire/ActivityMonitor.php @@ -44,6 +44,14 @@ public function hydrateActivity() $this->activity = Activity::find($this->activityId); } + public function updatedActivityId($value) + { + if ($value) { + $this->hydrateActivity(); + $this->isPollingActive = true; + } + } + public function polling() { $this->hydrateActivity();