mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-24 22:14:18 +00:00
🐛 Fix repository view
This commit is contained in:
parent
c6e00c1c5f
commit
b58e49b5b3
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue