app/javascript/components/TagEditor.tsx
Function TagEditor
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function TagEditor(props: Props) {
const [tags, setTags] = useState(props.tags);
const [enabled, setEnabled] = useState(props.enabled);
const tagList = [...tags, ...enabled].filter(onlyUnique);