Skip to content

Commit

Permalink
removed unused console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratatinator97 committed Jun 5, 2024
1 parent f6695ac commit 36ac498
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion components/navigation/pictalk-navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ export default {
},
async isEditorFatherId() {
const collection = await this.getCollectionFromId(parseInt(this.$route.query.fatherCollectionId, 10));
console.log(collection);
return collection?.editors.find((editor) => editor == this.$store.getters.getUser.username) != undefined;
},
async isToUserFatherId() {
Expand All @@ -351,6 +350,7 @@ export default {
});
},
navigateToParentCollection() {
actionsHistory
const speechCollectionArray = this.$store.getters.getSpeech.filter((picto) => !picto.sidebar && picto.collection);
const speechCollectionArrayBeforePosition = speechCollectionArray.slice(0, speechCollectionArray.findIndex((picto) => picto.id == parseInt(this.$route.query.fatherCollectionId)));
if (speechCollectionArrayBeforePosition.length < 1) {
Expand Down
4 changes: 0 additions & 4 deletions store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,25 +961,21 @@ async function parseAndUpdateEntireCollection(vuexContext, collection, download
await vuexContext.dispatch("dbAddCollection", collectionsToCreate);
}
if (collectionsToEdit.length > 0) {
console.log("editCollection started");
await vuexContext.dispatch("dbEditCollection", collectionsToEdit);
console.log("editCollection done")
}
if (pictosTocreate.length > 0) {
await vuexContext.dispatch("dbAddPicto", pictosTocreate);
}
if (pictosToEdit.length > 0) {
await vuexContext.dispatch("dbEditPicto", pictosToEdit);
}
console.log("return collection: ");
if (existsCollection && !updateCollection) {
return localCollection;
} else {
return collection;
}

}
console.log("return {}: ");
return { collectionsToCreate, collectionsToEdit, pictosTocreate, pictosToEdit, collectionsWithoutFatherCollectionId };
}

Expand Down

0 comments on commit 36ac498

Please sign in to comment.