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:
@@ -455,7 +455,7 @@ export default function PreferencesComponent({ ...props }) {
|
||||
case 'threshold':
|
||||
return 'threshold';
|
||||
default:
|
||||
if (console && console.warn) {
|
||||
if (console?.warn) {
|
||||
// Warning for developer only.
|
||||
console.warn(
|
||||
'Hmm.. We don\'t know how to render this type - \'\'' + type + '\' of control.'
|
||||
|
||||
Reference in New Issue
Block a user