mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🐛 Fix wrong url being generated for actions
This commit is contained in:
parent
b048b8374a
commit
cd50706f5e
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ export function useManagedViewSet<Resource extends DjangoResource>(baseRoute: st
|
|||
let response: Resource
|
||||
|
||||
try {
|
||||
response = await viewset.action({url: `${baseRoute}${pk}/${action}/`, data})
|
||||
response = await viewset.action({url: `${baseRoute}${pk}/${act}/`, data})
|
||||
}
|
||||
|
||||
catch(err) {
|
||||
|
|
Loading…
Reference in a new issue