Skip to content

Commit eb45b00

Browse files
committed
fix bad tab completion
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 84d1f83 commit eb45b00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/components/views/dialogs/DevtoolsDialog.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class RoomStateExplorer extends React.Component {
237237
if (this.state.eventType === null) {
238238
Object.keys(this.roomStateEvents).forEach((evType) => {
239239
// Skip this entry if does not contain search query
240-
if (this.state.query && !evType.toLowerCase().includes(this.state.query.toLocaleLowerCase())) return;
240+
if (this.state.query && !evType.toLowerCase().includes(this.state.query.toLowerCase())) return;
241241

242242
const stateGroup = this.roomStateEvents[evType];
243243
const stateKeys = Object.keys(stateGroup);
@@ -258,7 +258,7 @@ class RoomStateExplorer extends React.Component {
258258
const stateGroup = this.roomStateEvents[evType];
259259
Object.keys(stateGroup).forEach((stateKey) => {
260260
// Skip this entry if does not contain search query
261-
if (this.state.query && !stateKey.toLowerCase().includes(this.state.query.toLocaleLowerCase())) return;
261+
if (this.state.query && !stateKey.toLowerCase().includes(this.state.query.toLowerCase())) return;
262262

263263
const ev = stateGroup[stateKey];
264264
rows.push(<button className="mx_DevTools_RoomStateExplorer_button" key={stateKey}

0 commit comments

Comments
 (0)