Skip to content

Commit

Permalink
fix: warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Feb 24, 2025
1 parent c7b0fe4 commit 2d10163
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/components/Blocks/SearchMap/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,10 @@ const SearchMapBody = ({ data, id, path, properties, block, inEditMode }) => {
key={block_id + i}
className="mb-lg-3"
>
<SearchResultItem item={item} />
<SearchResultItem
item={item}
key={i + '' + block_id}
/>
</Col>
))}
</Row>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Search/common/SearchResultItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {

const ResultItem = ({ item }) => {
return item['@type'] === 'Struttura' ? (
<CardPlace item={item} type="synthetic" />
<CardPlace item={item} type="synthetic" key={item['@id']} />
) : item['@type'] === 'Persona' ? (
<CardPersona item={item} />
<CardPersona item={item} key={item['@id']} />
) : item['@type'] === 'ComeFarePer' ? (
<CardGuide item={item} />
<CardGuide item={item} key={item['@id']} />
) : (
<CardSimple item={item} />
<CardSimple item={item} key={item['@id']} />
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/config/blocks/listing/listingVariations.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const iosanitaListingVariations = [
schemaEnhancer: ({ schema, formData, intl }) => {
addSimpleCardTemplateOptions(schema, formData, intl);
addLinkMoreOptions(schema, formData, intl);
console.log(schema);

return schema;
},
cloneData: cloneBlock,
Expand Down

0 comments on commit 2d10163

Please sign in to comment.