From b39952549f4648eccedc40ad985dbf5803388cc4 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 16 Jul 2024 19:55:11 -0400 Subject: [PATCH] fix: sort schemas when uploading data (#29610) --- .../templates/superset/form_view/database_schemas_selector.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/templates/superset/form_view/database_schemas_selector.html b/superset/templates/superset/form_view/database_schemas_selector.html index a02ea46098579..619c8ff4b26c2 100644 --- a/superset/templates/superset/form_view/database_schemas_selector.html +++ b/superset/templates/superset/form_view/database_schemas_selector.html @@ -37,7 +37,7 @@ dataType: 'json', contentType: "application/json; charset=utf-8" }).done(function (data) { - change_schema_field_in_formview(data ? data.schemas : []) + change_schema_field_in_formview(data ? data.schemas.sort() : []) }).fail(function (error) { var errorMsg = error.responseJSON.error; alert("ERROR: " + errorMsg);