Fix MCP server Runtime page crash when an endpoint is removed#1371
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesNull-safe endpoint configuration handling
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
|
|
@coderabbitai approve |
✅ Action performedComments resolved. Approval is disabled; enable |



Purpose
Fixes the crash that occurs when navigating to the Runtime page of an MCP server after deleting either the production or sandbox endpoint.
Changes
endpointConfig.production_endpoints / endpointConfig.sandbox_endpoints without checking if the object exists.
Related Issues
Fixes wso2/api-manager#5096