You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
290 B

  1. export default async function({ store, route }) {
  2. const project = store.getters['projects/currentProject']
  3. const isEmpty = Object.keys(project).length === 0 && project.constructor === Object
  4. if (isEmpty) {
  5. await store.dispatch('projects/setCurrentProject', route.params.id)
  6. }
  7. }