Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c63d15

Browse files
committed
Fixed missing key react warnings
1 parent7c748b7 commit3c63d15

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

‎src/components/base/VisualBuilderComponent.tsx‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const VisualBuilderComponent: FC<VisualBuilderProps> = ({ key, version }) => {
6363
refetch();
6464
})
6565
},[]);
66-
66+
6767
constexperiences=data?._Experience?.items;
6868
if(!experiences){
6969
returnnull;
@@ -79,19 +79,15 @@ const VisualBuilderComponent: FC<VisualBuilderProps> = ({ key, version }) => {
7979
<divclassName="relative w-full flex-1 vb:outline">
8080
<divclassName="relative w-full flex-1 vb:outline">
8181
{experience?.composition?.grids?.map((grid:any)=>
82-
<divclassName="relative w-full flex flex-col flex-nowrap justify-start vb:grid"
83-
data-epi-block-id={grid?.key}>
82+
<divkey={grid.key}className="relative w-full flex flex-col flex-nowrap justify-start vb:grid"
83+
data-epi-block-id={grid.key}>
8484
{grid.rows?.map((row:any)=>
85-
<div
86-
className="flex-1 flex flex-row flex-nowrap justify-start vb:row">
85+
<divkey={row.key}className="flex-1 flex flex-row flex-nowrap justify-start vb:row">
8786
{row.columns?.map((column:any)=>(
88-
<div
89-
className="flex-1 flex flex-col flex-nowrap justify-start vb:col">
87+
<divclassName="flex-1 flex flex-col flex-nowrap justify-start vb:col"key={column.key}>
9088
{column.elements?.map((element:any)=>
91-
<div
92-
data-epi-block-id={element?.key}>
93-
<CompositionNodeComponent
94-
compositionElementNode={element}/>
89+
<divdata-epi-block-id={element?.key}key={element?.key}>
90+
<CompositionNodeComponentcompositionElementNode={element}/>
9591
</div>
9692
)}
9793
</div>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp