1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00

🐛 Fix repository view

This commit is contained in:
Steffo 2021-05-20 00:47:59 +02:00
parent c6e00c1c5f
commit b58e49b5b3
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -17,7 +17,7 @@ export default function PageRepositories({ children, className, ...props }) {
await bv.apiRequest("PATCH", `/api/v1/repositories/${pk}`, {
"close": true,
})
await bv.refreshResource(pk)
await bv.retrieveResource(pk)
},
[bv],
)
@ -31,7 +31,7 @@ export default function PageRepositories({ children, className, ...props }) {
repositories={bv.resources.filter(r => r.is_active)}
view={pk => history.push(`/repositories/${pk}`)}
archive={archive}
edit={bv.editResource}
edit={pk => history.push(`/repositories/${pk}/edit`)}
/>
<BoxRepositories
header={strings.menuArchived}