portal connect fix

This commit is contained in:
Jan Prochazka
2022-05-25 20:13:37 +02:00
parent e279569466
commit 966a6e02c1

View File

@@ -86,6 +86,11 @@
};
const handleClick = () => {
const config = getCurrentConfig();
if (config.runAsPortal) {
handleConnect();
return;
}
if ($openedSingleDatabaseConnections.includes(data._id)) {
currentDatabase.set({ connection: data, name: data.defaultDatabase });
return;