From af0354061802219ad4a94e87ea54049e61e29691 Mon Sep 17 00:00:00 2001 From: Taylor Downs Date: Wed, 30 Aug 2023 11:48:46 +0100 Subject: [PATCH] fix credential type sort --- lib/lightning_web/live/credential_live/type_picker.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lightning_web/live/credential_live/type_picker.ex b/lib/lightning_web/live/credential_live/type_picker.ex index 91b38bcd1c..4a4b3c2d0e 100644 --- a/lib/lightning_web/live/credential_live/type_picker.ex +++ b/lib/lightning_web/live/credential_live/type_picker.ex @@ -95,6 +95,7 @@ defmodule LightningWeb.CredentialLive.TypePicker do schemas_options |> append_if_missing({"Raw JSON", "raw"}) |> append_if_missing({"Googlesheets", "googlesheets"}) + |> Enum.sort_by(&(&1), :asc) |> Enum.filter(fn {_, key} -> case key do "googlesheets" ->