mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-28 23:44:19 +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}`, {
|
await bv.apiRequest("PATCH", `/api/v1/repositories/${pk}`, {
|
||||||
"close": true,
|
"close": true,
|
||||||
})
|
})
|
||||||
await bv.refreshResource(pk)
|
await bv.retrieveResource(pk)
|
||||||
},
|
},
|
||||||
[bv],
|
[bv],
|
||||||
)
|
)
|
||||||
|
@ -31,7 +31,7 @@ export default function PageRepositories({ children, className, ...props }) {
|
||||||
repositories={bv.resources.filter(r => r.is_active)}
|
repositories={bv.resources.filter(r => r.is_active)}
|
||||||
view={pk => history.push(`/repositories/${pk}`)}
|
view={pk => history.push(`/repositories/${pk}`)}
|
||||||
archive={archive}
|
archive={archive}
|
||||||
edit={bv.editResource}
|
edit={pk => history.push(`/repositories/${pk}/edit`)}
|
||||||
/>
|
/>
|
||||||
<BoxRepositories
|
<BoxRepositories
|
||||||
header={strings.menuArchived}
|
header={strings.menuArchived}
|
||||||
|
|
Loading…
Reference in a new issue