From 0a22ba80d7ef59e49256871522ba480a52e9b6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 22 Jan 2025 16:08:13 +0700 Subject: [PATCH] Move put session before redirect --- lib/livebook/zta/livebook_teams.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/livebook/zta/livebook_teams.ex b/lib/livebook/zta/livebook_teams.ex index 69411b3def3..8c688227d51 100644 --- a/lib/livebook/zta/livebook_teams.ex +++ b/lib/livebook/zta/livebook_teams.ex @@ -56,8 +56,8 @@ defmodule Livebook.ZTA.LivebookTeams do else _ -> {conn - |> redirect(to: conn.request_path) |> put_session(:teams_error, true) + |> redirect(to: conn.request_path) |> halt(), nil} end end @@ -142,8 +142,8 @@ defmodule Livebook.ZTA.LivebookTeams do _ -> {conn - |> redirect(to: conn.request_path) |> put_session(:teams_error, true) + |> redirect(to: conn.request_path) |> halt(), nil} end end