diff --git a/front/MyINPulse-front/index.html b/front/MyINPulse-front/index.html
index 9e5fc8f..a678cb5 100644
--- a/front/MyINPulse-front/index.html
+++ b/front/MyINPulse-front/index.html
@@ -1,13 +1,13 @@
-
+
-
-
-
-
- Vite App
-
-
-
-
-
+
+
+
+
+ Vite App
+
+
+
+
+
diff --git a/front/MyINPulse-front/src/ApiClasses/SectionCell.ts b/front/MyINPulse-front/src/ApiClasses/SectionCell.ts
index 1b346d1..e5fa52e 100644
--- a/front/MyINPulse-front/src/ApiClasses/SectionCell.ts
+++ b/front/MyINPulse-front/src/ApiClasses/SectionCell.ts
@@ -43,6 +43,15 @@ class SectionCell {
set modificationDate(value: string | undefined) {
this._modificationDate = value;
}
+
+ toPlainObject() {
+ return {
+ idSectionCell: this._idSectionCell,
+ sectionId: this._sectionId,
+ contentSectionCell: this._contentSectionCell,
+ modificationDate: this._modificationDate,
+ };
+ }
}
export default SectionCell;
diff --git a/front/MyINPulse-front/src/api_tmp.ts b/front/MyINPulse-front/src/api_tmp.ts
index 222915f..3399062 100644
--- a/front/MyINPulse-front/src/api_tmp.ts
+++ b/front/MyINPulse-front/src/api_tmp.ts
@@ -636,12 +636,12 @@ function requestProjectCreation(
}
function addSectionCell(
- sectionCellDetails: SectionCell, // Replace 'any' with a proper type for section cell details if available
+ sectionCellDetails: SectionCell,
onSuccessHandler?: (response: AxiosResponse) => void,
onErrorHandler?: (error: AxiosError) => void
): void {
axiosInstance
- .post("/entrepreneur/sectionCells", sectionCellDetails)
+ .post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject()) // <-- Ici
.then((response) => {
if (onSuccessHandler) {
onSuccessHandler(response);
diff --git a/front/MyINPulse-front/src/components/canvas/CanvasItem.vue b/front/MyINPulse-front/src/components/canvas/CanvasItem.vue
index a106e74..4bcdc33 100755
--- a/front/MyINPulse-front/src/components/canvas/CanvasItem.vue
+++ b/front/MyINPulse-front/src/components/canvas/CanvasItem.vue
@@ -6,37 +6,32 @@
-
- {{ description }}
-
+
{{ description }}
-
-
{{ desc }}
+
{{ desc.contentSectionCell }}
-
-
+
-
{{ desc }}
+
{{ desc.contentSectionCell }}