diff --git a/components/bal/voies-list.tsx b/components/bal/voies-list.tsx
index 86b2c45fb..834bab349 100644
--- a/components/bal/voies-list.tsx
+++ b/components/bal/voies-list.tsx
@@ -193,8 +193,8 @@ function VoiesList({
: null
}
comment={
- voie.commentedNumeros.length > 0 ? (
-
+ voie.comments.length > 0 ? (
+
) : null
}
warning={
diff --git a/components/comments-content.tsx b/components/comments-content.tsx
index 74696888e..dddcfb744 100644
--- a/components/comments-content.tsx
+++ b/components/comments-content.tsx
@@ -1,14 +1,10 @@
import { Pane, Text } from "evergreen-ui";
+import { uniqueId } from "lodash";
const COMMENTS_LIMIT = 10;
interface CommentsContentProps {
- comments: {
- id: string;
- numero: number;
- suffixe: string;
- comment: string;
- }[];
+ comments: string[];
}
function CommentsContent({ comments }: CommentsContentProps) {
@@ -23,18 +19,15 @@ function CommentsContent({ comments }: CommentsContentProps) {
Commentaire{`${comments.length > 0 ? "s" : ""}`} :
- {filteredComments.map(({ id, numero, suffixe, comment }) => (
+ {filteredComments.map((comment) => (
-
- • {numero}
- {suffixe} : {comment}
-
+ {comment}
))}
{nbComments > COMMENTS_LIMIT && (
diff --git a/lib/openapi/models/ExtendedVoieDTO.ts b/lib/openapi/models/ExtendedVoieDTO.ts
index 3bade0af8..19bee6abf 100644
--- a/lib/openapi/models/ExtendedVoieDTO.ts
+++ b/lib/openapi/models/ExtendedVoieDTO.ts
@@ -18,13 +18,13 @@ export type ExtendedVoieDTO = {
typeNumerotation: ExtendedVoieDTO.typeNumerotation;
centroid: Record;
trace: Record;
+ bbox: Array;
baseLocale: BaseLocale;
numeros: Array;
nbNumeros: number;
nbNumerosCertifies: number;
isAllCertified: boolean;
- commentedNumeros: Array;
- bbox: Record;
+ comments: Array;
};
export namespace ExtendedVoieDTO {
diff --git a/lib/openapi/models/Voie.ts b/lib/openapi/models/Voie.ts
index 50d24f8f2..24307ff5a 100644
--- a/lib/openapi/models/Voie.ts
+++ b/lib/openapi/models/Voie.ts
@@ -18,6 +18,7 @@ export type Voie = {
typeNumerotation: Voie.typeNumerotation;
centroid: Record;
trace: Record;
+ bbox: Array;
baseLocale: BaseLocale;
numeros: Array;
};