mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-03 12:49:23 -06:00
Port Synonyms node to react. Fixes #6599
This commit is contained in:
1 parent
47855eae0b
commit
5c1ce23780
6 files changed
+307
-120
No files matched your search
@@ -64,6 +64,7 @@ export function getNodeAjaxOptions(url, nodeObj, treeNodeInfo, itemNodeData, par
|
||||
let otherParams = {
|
||||
urlWithId: false,
|
||||
jumpAfterNode: null,
|
||||
useCache: true,
|
||||
...params
|
||||
};
|
||||
return new Promise((resolve, reject)=>{
|
||||
@@ -91,7 +92,7 @@ export function getNodeAjaxOptions(url, nodeObj, treeNodeInfo, itemNodeData, par
|
||||
})
|
||||
.then((res)=>{
|
||||
data = res.data.data;
|
||||
cacheNode.cache(nodeObj.type + '#' + url, treeNodeInfo, cacheLevel, data);
|
||||
otherParams.useCache && cacheNode.cache(nodeObj.type + '#' + url, treeNodeInfo, cacheLevel, data);
|
||||
resolve(transform(data));
|
||||
})
|
||||
.catch((err)=>{
|
||||
|
||||
Reference in new issue
Block a user