We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82949ad commit 35f7b15Copy full SHA for 35f7b15
app/routes/users+/$username_+/__note-editor.tsx
@@ -110,7 +110,10 @@ export function NoteEditor({
110
<Label>Images</Label>
111
<ul className="flex flex-col gap-4">
112
{imageList.map((imageMeta, index) => {
113
- const image = note?.images[index]
+ const imageMetaId = imageMeta.getFieldset().id.value
114
+ const image = note?.images.find(
115
+ ({ id }) => id === imageMetaId,
116
+ )
117
return (
118
<li
119
key={imageMeta.key}
0 commit comments