Skip to content

Commit

Permalink
fix(study-tree): remove console log, add locales
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis SMAIL committed Jan 9, 2025
1 parent d47ac05 commit 0c2dcdf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions webapp/public/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@
"studies.tree.error.failToFetchWorkspace": "Failed to load workspaces",
"studies.tree.error.failToFetchFolder": "Failed to load subfolders for {{path}}",
"studies.tree.error.detailsInConsole": "Details logged in the console",
"studies.tree.fetchFolderLoading": "Loading...",
"variants.createNewVariant": "Create new variant",
"variants.newVariant": "New variant",
"variants.newCommand": "Add new command",
Expand Down
1 change: 1 addition & 0 deletions webapp/public/locales/fr/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@
"studies.tree.error.failToFetchWorkspace": "Échec lors de la récupération de l'espace de travail",
"studies.tree.error.failToFetchFolder": "Échec lors de la récupération des sous dossiers de {{path}}",
"studies.tree.error.detailsInConsole": "Détails de l'érreur dans la console",
"studies.tree.fetchFolderLoading": "Chargement...",
"variants.createNewVariant": "Créer une nouvelle variante",
"variants.newVariant": "Nouvelle variante",
"variants.newCommand": "Ajouter une nouvelle commande",
Expand Down
7 changes: 3 additions & 4 deletions webapp/src/components/App/Studies/StudyTree/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ function StudyTree() {
t("studies.tree.error.detailsInConsole"),
);
}
console.log("treeAfterSubfoldersUpdate", treeAfterSubfoldersUpdate);
setStudiesTree(treeAfterSubfoldersUpdate);
}

Expand Down Expand Up @@ -144,9 +143,9 @@ function StudyTree() {
onClick={() => handleTreeItemClick(id, child)}
>
<TreeItemEnhanced
key={id + "lllloading"}
itemId={id + "lllloading"}
label={"lllloading..."}
key={id + "loading"}
itemId={id + "loading"}
label={t("studies.tree.fetchFolderLoading")}
/>
</TreeItemEnhanced>
);
Expand Down
1 change: 0 additions & 1 deletion webapp/src/components/App/Studies/StudyTree/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ export async function fetchAndInsertSubfolders(
const results = await Promise.allSettled(
paths.map((path) => fetchSubfolders(path)),
);
console.log("results", results);
return results.reduce<[StudyTreeNode, string[]]>(
([tree, failed], result, index) => {
if (result.status === "fulfilled") {
Expand Down

0 comments on commit 0c2dcdf

Please sign in to comment.