Commit 9be680d
fix: extract file descriptor when items have nested 'file' key
When the frontend sends multiple files via 'Choose from Files',
each item in the files array has the shape:
{ file: { path: '...' }, name: 'filename' }
processFileData() was passing the whole item as 'file' to
getNodeFromData(), creating a double-nested file.file.path
structure that getNodeFromData() cannot resolve, triggering
the 'No file source provided' exception.
Fix: extract fileData['file'] if present, otherwise fall back
to using fileData itself as the descriptor.
Fixes #7343
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent 46a8252 commit 9be680d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
0 commit comments