Commit 6a372a29 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix bug with project select

parent 3791c4e4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -376,6 +376,9 @@ export default {
    currentProjectId() {
      if(!this.currentProjectId)
        return;
      if(this.currentCollection){
        this.$store.commit('setCurrentCollection', null)
      }
      this.$store.dispatch('fetchStats').then(() => {
        if(this.$store.getters.currentStats.project_root_collection_id) {
            this.$store.commit('setCurrentRootCollectionId', this.$store.getters.currentStats.project_root_collection_id);
@@ -489,6 +492,8 @@ export default {
      let start = (this.currentPage - 1) * this.pageLength;
      let end = start + this.pageLength;
      //let nbItems = 0; //for pagination
      console.log("project_id: " + this.currentProjectId);
      console.log("collection_id: " + collection.id);
      this.fetchItems(
          {
            projectId : this.currentProjectId,