Fixed linter warnings

This commit is contained in:
Rainer Simon 2020-09-14 12:16:07 +02:00
parent b02ad98dd5
commit 5018f2e8cf
3 changed files with 3 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import React, { useState, useEffect, useRef } from 'react'
import React, { useState, useRef } from 'react'
import { useCombobox } from 'downshift'
const Autocomplete = props => {
@ -7,9 +7,6 @@ const Autocomplete = props => {
const [ inputItems, setInputItems ] = useState(props.vocabulary);
// useEffect(() =>
// element.current?.querySelector('input')?.focus(), []);
const onInputValueChange = ({ inputValue }) => {
if (inputValue.length > 0) {
// Set suggestions to prefix matches...

View File

@ -67,7 +67,7 @@ const CommentWidget = props => {
// The current user
const me = Environment.user;
return !(me === creator);
return me !== creator;
}
// Global setting as last possible option

View File

@ -4,7 +4,7 @@ import EventEmitter from 'tiny-emitter';
const IS_TOUCH = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
const IS_INTERNET_EXPLORER =
window?.navigator.userAgent.match(/(MSIE|Trident)/);
window?.navigator?.userAgent.match(/(MSIE|Trident)/);
/** Tests whether maybeChildEl is contained in containerEl **/
const contains = (containerEl, maybeChildEl) => {