diff options
Diffstat (limited to 'app/assets/javascripts/registry/explorer/router.js')
-rw-r--r-- | app/assets/javascripts/registry/explorer/router.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/registry/explorer/router.js b/app/assets/javascripts/registry/explorer/router.js index 7e4c3d28623..28df3177df4 100644 --- a/app/assets/javascripts/registry/explorer/router.js +++ b/app/assets/javascripts/registry/explorer/router.js @@ -21,7 +21,9 @@ export default function createRouter(base, store) { root: true, }, beforeEnter: (to, from, next) => { - store.dispatch('requestImagesList'); + if (!from.name || !store.state.images?.length) { + store.dispatch('requestImagesList'); + } next(); }, }, |