strapi/packages/strapi-plugin-settings-manager
Alberto Maturano d7ffb9e50e Fix conditional logic
Original code:

```js
const listTitle = this.props.match.params.slug === 'languages' || 'databases' ? this.renderListTitle() : '';
```

Is interpreted as:

```js
const listTitle = ( this.props.match.params.slug === 'languages' || 'databases' ) ? this.renderListTitle() : '' ;
```

Been `databases` always been evaluate as `true`, this is the same that:

```js
const listTitle = this.renderListTitle();
```

Clearly is not the intention. I refactor this peace of code with what I think was the real intention; looking just
the code, not knowing is this is the desire behavior
2018-10-04 14:54:05 -05:00
..
2018-10-04 14:54:05 -05:00
2018-09-26 11:08:10 +02:00

Strapi plugin