1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-23 07:14:21 +00:00

🐛 Fix wrong url being generated for actions

This commit is contained in:
Steffo 2021-10-10 16:10:10 +02:00
parent bc701ade24
commit 7f49644a25
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -467,7 +467,7 @@ export function useManagedViewSet<Resource extends DjangoResource>(baseRoute: st
let response: Resource let response: Resource
try { try {
response = await viewset.action({url: `${baseRoute}${pk}/${action}/`, data}) response = await viewset.action({url: `${baseRoute}${pk}/${act}/`, data})
} }
catch(err) { catch(err) {