Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update inventory edit link #1368

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Update inventory edit link #1368

merged 1 commit into from
Apr 5, 2024

Conversation

ciremusyoka
Copy link
Collaborator

closes #1367

Changes included with this PR

  • Update inventory edit link to include inventory id instead of product id

Checklist

  • tests are included and passing
  • documentation is changed or added
  • Internationalization:
    • Ensure all strings are internationalized.
  • Role-Based Access:
    • Verify that all user actions have appropriate role-based access permissions set.

@ciremusyoka ciremusyoka requested a review from peterMuriuki April 4, 2024 14:56
Comment on lines 264 to 265
to={`${baseInventoryPath}/${id}`}
className={`m-0 p-1 ${id === undefined ? 'disabled-link' : ''}`}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be wrong but is it possible to have an undefined id at this point? we can assume all resources from the server will have an id

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted

@ciremusyoka ciremusyoka force-pushed the 1366-update-edit-link branch from a0d4750 to e5076d6 Compare April 5, 2024 09:43
@peterMuriuki peterMuriuki merged commit 4c9ed48 into main Apr 5, 2024
0 of 2 checks passed
@peterMuriuki peterMuriuki deleted the 1366-update-edit-link branch April 5, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[eusm] Editing inventory does not prepoluate form
2 participants