Fix graph page crash - use @current_organization instead of @organization

Fixed KeyError on graph show page where template was referencing
@organization.slug instead of @current_organization.slug
This commit is contained in:
Graham McIntire 2026-01-17 17:09:30 -06:00
parent 841cf67e8b
commit f7b3a6a7dc
No known key found for this signature in database

View file

@ -9,7 +9,7 @@
<div class="flex items-center justify-between mb-6">
<div class="flex items-center gap-4">
<.link
navigate={~p"/orgs/#{@organization.slug}/devices/#{@device_id}"}
navigate={~p"/orgs/#{@current_organization.slug}/devices/#{@device_id}"}
class="text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-100"
>
<.icon name="hero-arrow-left" class="h-5 w-5" />