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:
@@ -124,7 +124,7 @@ export function getNodeAjaxOptions(url, nodeObj, treeNodeInfo, itemNodeData, par
|
||||
otherParams.useCache && cacheNode.cache(nodeObj.type + '#' + url, treeNodeInfo, cacheLevel, data);
|
||||
resolve(transform(data));
|
||||
}).catch((err)=>{
|
||||
reject(new Error(err));
|
||||
reject(err instanceof Error ? err : Error('Something went wrong'));
|
||||
});
|
||||
} else {
|
||||
// To fetch only options from cache, we do not need time from 'at'
|
||||
|
||||
Reference in New Issue
Block a user