Skip to content

Commit 9e3b13a

Browse files
Update GraphicalEditor.tsx
1 parent 002d760 commit 9e3b13a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/origine2/src/pages/editor/GraphicalEditor/GraphicalEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ export default function GraphicalEditor(props: IGraphicalEditorProps) {
163163
// console.log(sentence.command);
164164
const sentenceConfig = sentenceEditorConfig.find((e) => e.type === sentence.command) ?? sentenceEditorDefault;
165165
const SentenceEditor = sentenceConfig.component;
166-
return <Draggable key={sentence.content + sentence.commandRaw + i}
166+
return <Draggable key={JSON.stringify(sentence.sentenceAssets) + sentence.commandRaw + i}
167167
draggableId={sentence.content + sentence.commandRaw + i} index={i}>
168168
{(provided, snapshot) => (
169169
<div className={`${styles.sentenceEditorWrapper} sentence-block-${index}`}
170-
key={sentence.commandRaw + sentence.content + i + 'inner'}
170+
key={sentence.commandRaw + JSON.stringify(sentence.sentenceAssets) + i + 'inner'}
171171
ref={provided.innerRef}
172172
{...provided.draggableProps}
173173
>

0 commit comments

Comments
 (0)