fix(admin-ui): data not preloading on the Asset edit page (#2913)#2914
Conversation
Signed-off-by: faisalsiddique4400 <faisalsiddique10886@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR fixes two issues: GluuSelectRow now preserves the current displayValue in the deduplicated options list even when absent from incoming values, and AssetForm derives asset data via useMemo, falling back to the full response when entries are missing, fixing asset preload in edit mode. ChangesGluuSelectRow value resolution
AssetForm data preload fix
Estimated code review effort: 2 (Simple) | ~10 minutes Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



fix(admin-ui): data not preloading on the Asset edit page (#2913)
Summary
This PR fixes an issue where asset data was not being loaded when opening the Asset page in edit mode.
The update ensures the existing asset details are fetched correctly before rendering the edit form, allowing users to view and modify the current asset configuration without manually reloading the page.
Fix Summary
Verification
passes successfully.
🔗 Ticket
Closes: #2913
Summary by CodeRabbit