Closed chandan192 closed 2 years ago
Thanks for the suggestion!
I will see if I can integrate it in one of the next releases.
The feature is implemented and will be included in the next release.
@chandan192 I've just released version 1.57.0, which supports your suggested improvement. Please re-open if you still cannot run the refactoring on version 1.57.0 or higher. Thanks for the suggestion!
Hi @lgrammel, converting if-else to conditional expression is not working for the below case.
Hi @chandan192 - thanks for the bug report. I'll look into it.
Fixed in 1.64.2 - thanks for the bug report!
let x; if (me.isEnabledColumnFilter === true) { x = 'Disable Filters'; } else { x = 'Enable Filters'; }
Here, refactoring works perfectly and yield result is
let x; x = me.isEnabledColumnFilter === true ? 'Disable Filters' : 'Enable Filters';
But, the linting is not shown with this keyword. Below is the code.
if (this.isEnabledColumnFilter === true) { this.filterTitle = 'Disable Filters'; } else { this.filterTitle = 'Enable Filters'; }