mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 22:55:59 +00:00
fixed show master-detail
This commit is contained in:
@@ -13,6 +13,7 @@ export default function useFetch({
|
||||
defaultValue = undefined,
|
||||
reloadTrigger = undefined,
|
||||
cacheKey = undefined,
|
||||
transform = (x) => x,
|
||||
...config
|
||||
}) {
|
||||
const [value, setValue] = React.useState([defaultValue, []]);
|
||||
@@ -34,7 +35,7 @@ export default function useFetch({
|
||||
data,
|
||||
...config,
|
||||
});
|
||||
return resp.data;
|
||||
return transform(resp.data);
|
||||
}
|
||||
|
||||
if (cacheKey) {
|
||||
|
||||
Reference in New Issue
Block a user