You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method showBodyText appears in 4 files. This method only sanitises input text. Currently, it accepts an object. Instead, the following approach could reduce redundant code and be moved to a base / core method that could be reused across multiple contexts:
Is there an existing issue for this?
Current Behavior
The method
showBodyText
appears in 4 files. This method only sanitises input text. Currently, it accepts an object. Instead, the following approach could reduce redundant code and be moved to a base / core method that could be reused across multiple contexts:For example, the above code is invoked as follows:
Expected Behavior
Instead, change the implementation to:
And, invoke this method:
Steps To Reproduce
Code refactoring idea
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: