Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Dec 11, 2024
1 parent 74519ba commit a2a7eae
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions client/src/pages/atlas/charts/trend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function TrendGraph({
color = "#000",
data = [],
}: TrendGraphProps) {
console.log("TrendGraph", data);

const options = {
chart: {
Expand Down Expand Up @@ -64,9 +63,6 @@ export default function TrendGraph({
<figure className="highcharts-figure">
<HighchartsReact highcharts={Highcharts} options={options} />
</figure>
{/* <p className="fr-card__desc card-description fr-px-5w">
Annee universitaire {currentYear}
</p> */}
</div>
);
}
3 changes: 0 additions & 3 deletions client/src/pages/atlas/components/main/tabs/general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ export function General() {
}
};

console.log("dataByYear", dataByYear);


function MapSelector() {
if (
isLoadingPolygons ||
Expand Down
4 changes: 1 addition & 3 deletions client/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ function Contact() {

const maRequete = new Request(VITE_APP_TICKET_OFFICE_API_URL);

fetch(maRequete, monInit).then((response) => {
console.log(response);
});
fetch(maRequete, monInit);
};

return (
Expand Down
2 changes: 0 additions & 2 deletions server/src/routes/admin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ router.route("/admin/delete-version").delete(async (req, res) => {
// delete all files in files folder
router.route("/admin/delete-uploaded-files").delete((req, res) => {
const directory = "../files";
console.log(directory);

fs.readdir(directory, (err, files) => {
if (err) {
Expand All @@ -140,7 +139,6 @@ router.route("/admin/delete-uploaded-files").delete((req, res) => {

files.forEach((file) => {
const filePath = path.join(directory, file);
console.log("filePath", filePath);

fs.unlink(filePath, (err) => {
if (err) {
Expand Down

0 comments on commit a2a7eae

Please sign in to comment.