refactor: otp-1873: Check for similar code workflowConfigViewer/workflowConfig
Closes otp-1873
Summary by CodeRabbit
-
Refactor
- Streamlined logic for handling fragments and selector methods into a single method, improving code maintainability and reducing redundancy.
- Enhanced error handling remains consistent across both functions while centralizing the rendering logic.
Edited by CodeRabbit