From 2f24c56e7fe958d777794d03b4bfd0dd79d18426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Bara=C3=BAna?= Date: Thu, 11 Jul 2024 14:39:04 -0300 Subject: [PATCH] Don't show :undefined id when rendering supervision trees --- lib/kino/process.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kino/process.ex b/lib/kino/process.ex index e3e7abd3..6c8372d2 100644 --- a/lib/kino/process.ex +++ b/lib/kino/process.ex @@ -764,7 +764,7 @@ defmodule Kino.Process do {:registered_name, []} -> case get_label(pid) do :undefined -> - if idx == 0 do + if idx == 0 || id == :undefined do inspect(pid) else # Use worker/supervisor id as label