Fixed all broken submenus of the Help menu due to the SonarQube fix.

This commit is contained in:
Akshay Joshi 2024-02-08 12:24:40 +05:30
parent af1f4b3aa7
commit c92e9c2953
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Version 8.3
***********
Release date: 2024-02-08
Release date: 2024-02-09
This release contains a number of bug fixes and new features since the release of pgAdmin 4 v8.2.

View File

@ -86,7 +86,7 @@ export default class MainMenuFactory {
// Some callbacks registered in 'callbacks' check and call specifiec callback function
if (options.module && 'callbacks' in options.module && options.module.callbacks[options.callback]) {
options.module.callbacks[options.callback].apply(options.module, [options.data, pgAdmin.Browser.tree?.selected()]);
} else if (options?.module[options.callback]) {
} else if (options?.module?.[options.callback]) {
options.module[options.callback].apply(options.module, [options.data, pgAdmin.Browser.tree?.selected()]);
} else if (options?.callback) {
options.callback(options);