Commit 939bf15
committed
fix: Preserve selectedNodeId during file fetch and send correct identifier
Fix issue where selectedNodeId was being reset to 0 when addFile()
called getAllFiles(). The getAllFiles method resets selectedNodeId
when the file doesn't exist in the store yet, causing problems when
adding new files from the Nextcloud Files app.
Also update payload logic in saveWithVisibleElements and
updateSignatureRequest to send either fileId (for existing
LibreSign files) or nodeId (for new Nextcloud files) based on
whether file.id exists.
This ensures the backend receives the correct identifier type
for each scenario.
Signed-off-by: Vitor Mattos <[email protected]>1 parent a37e37f commit 939bf15
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
531 | 533 | | |
532 | 534 | | |
533 | 535 | | |
534 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
535 | 541 | | |
536 | | - | |
| 542 | + | |
537 | 543 | | |
538 | 544 | | |
539 | 545 | | |
| |||
571 | 577 | | |
572 | 578 | | |
573 | 579 | | |
574 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
575 | 585 | | |
576 | | - | |
| 586 | + | |
577 | 587 | | |
578 | 588 | | |
579 | 589 | | |
| |||
0 commit comments