mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smell 'Prefer using an optional chain expression instead, as it's more concise and easier to read'.
This commit is contained in:
@@ -149,7 +149,7 @@ export function initialize(gettext, url_for, _, pgAdmin, csrfToken, Browser) {
|
||||
+`&server_type=${pData.server.server_type}`
|
||||
+ `&theme=${theme}`;
|
||||
|
||||
if(pData.database && pData.database._id) {
|
||||
if(pData.database?._id) {
|
||||
openUrl += `&db=${encodeURIComponent(pData.database._label)}`;
|
||||
} else {
|
||||
openUrl += `&db=${''}`;
|
||||
|
||||
Reference in New Issue
Block a user