From b22c330462eaf42c605c9a445d25fc6b711d26dc Mon Sep 17 00:00:00 2001 From: Pierre Sedon Date: Mon, 26 Aug 2024 17:27:13 +0200 Subject: [PATCH] Fix wrong syntax --- lib/schema_web/views/page_view.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/schema_web/views/page_view.ex b/lib/schema_web/views/page_view.ex index 1b056b2..c97394d 100644 --- a/lib/schema_web/views/page_view.ex +++ b/lib/schema_web/views/page_view.ex @@ -146,7 +146,10 @@ defmodule SchemaWeb.PageView do end cond do - observable_type_id_map in [nil, {nil, nil}] -> + observable_type_id_map == nil -> + {nil, nil} + + observable_type_id_map == {nil, nil} -> {nil, nil} Map.has_key?(entity, :observable) ->