mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed incorrect handling of the code smell for the reject API call
This commit is contained in:
@@ -114,7 +114,7 @@ function RightPanel({ schema, ...props }) {
|
||||
try {
|
||||
resolve(props.initValues);
|
||||
} catch (error) {
|
||||
reject(new Error(error));
|
||||
reject(error instanceof Error ? error : Error(gettext('Something went wrong')));
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user