diff --git a/src/browser/modules/Stream/Auth/DbsFrame.jsx b/src/browser/modules/Stream/Auth/DbsFrame.jsx index d9e4f5e22eb..7eab90e875a 100644 --- a/src/browser/modules/Stream/Auth/DbsFrame.jsx +++ b/src/browser/modules/Stream/Auth/DbsFrame.jsx @@ -34,10 +34,12 @@ import { useDbCommand } from 'shared/modules/commands/commandsDuck' import TextCommand from 'browser/modules/DecoratedText/TextCommand' import ClickToCode from 'browser/modules/ClickToCode/index' import { StyledCodeBlockFrame } from 'browser/modules/Main/styled' +import { uniqBy } from 'lodash-es' export const DbsFrame = props => { const { frame } = props const { dbs = [] } = frame + const dbsToShow = uniqBy(dbs, 'name') return ( @@ -51,10 +53,10 @@ export const DbsFrame = props => { - + Click on one to start using it: - {dbs.map(db => { + {dbsToShow.map(db => { return ( @@ -63,7 +65,7 @@ export const DbsFrame = props => { })} - +
Either you don't have permission to list available databases or the dbms you're connected to don't support multiple databases.