File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/origine2/src/pages/editor/GraphicalEditor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,11 @@ export default function GraphicalEditor(props: IGraphicalEditorProps) {
163
163
// console.log(sentence.command);
164
164
const sentenceConfig = sentenceEditorConfig . find ( ( e ) => e . type === sentence . command ) ?? sentenceEditorDefault ;
165
165
const SentenceEditor = sentenceConfig . component ;
166
- return < Draggable key = { sentence . content + sentence . commandRaw + i }
166
+ return < Draggable key = { JSON . stringify ( sentence . sentenceAssets ) + sentence . commandRaw + i }
167
167
draggableId = { sentence . content + sentence . commandRaw + i } index = { i } >
168
168
{ ( provided , snapshot ) => (
169
169
< 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' }
171
171
ref = { provided . innerRef }
172
172
{ ...provided . draggableProps }
173
173
>
You can’t perform that action at this time.
0 commit comments