Skip to content

Commit

Permalink
Fix nil schema in /api/table/:id/query_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ranquild committed Apr 4, 2024
1 parent 219506f commit 2b8fe78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/metabase/api/database.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,7 @@
;; a non-nil value means Table is hidden -- see [[metabase.models.table/visibility-types]]
{:where [:= :visibility_type nil]})))
filter-schemas
;; for `nil` schemas return the empty string
(map #(if (nil? %) "" %))
(map #(api.table/format-schema-for-response %))
distinct
sort)))

Expand Down

0 comments on commit 2b8fe78

Please sign in to comment.