Skip to content

fix(FormContent): update supplier creation logic to directly use supp…#216

Merged
d-beezee merged 1 commit intodevelopfrom
fix-bug-supplier-creation
Feb 11, 2026
Merged

fix(FormContent): update supplier creation logic to directly use supp…#216
d-beezee merged 1 commit intodevelopfrom
fix-bug-supplier-creation

Conversation

@Kariamos
Copy link
Contributor

@Kariamos Kariamos commented Feb 11, 2026

This pull request refines the process of creating and selecting a new supplier in the FormContent component. The main improvement is ensuring the newly created supplier's actual ID from the backend is used, rather than generating a local placeholder ID. This change increases data consistency and reliability when updating the supplier selection.

Supplier creation and selection improvements:

  • Updated the onCreateOption handler to use the real supplier_id returned from the backend after creating a supplier, instead of assigning a locally calculated ID. This ensures the correct supplier is referenced in the form.

@Kariamos Kariamos added bug Something isn't working core labels Feb 11, 2026
@d-beezee d-beezee merged commit 0306bbd into develop Feb 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants