mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
fix: association block filter params (#3039)
This commit is contained in:
parent
52c3f28c04
commit
3aca9e05d9
@ -97,6 +97,9 @@ const useResource = (props: UseResourceProps) => {
|
||||
if (record?.__parent?.[association?.sourceKey || 'id']) {
|
||||
return api.resource(resource, record.__parent[association?.sourceKey || 'id']);
|
||||
}
|
||||
if (record?.[association?.sourceKey || 'id']) {
|
||||
return api.resource(resource, record[association?.sourceKey || 'id']);
|
||||
}
|
||||
return api.resource(collection);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user