qlik-oss/sn-org-chart

View on GitHub
src/selections-handler.js

Summary

Maintainability
A
3 hrs
Test Coverage
F
0%

Function selectionHandler has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function selectionHandler(translator) {
  const [singleSelect, setSingleSelect] = useState(false);
  const selectionsAPI = useSelections();
  const isInSelections = !!useLayout().qSelectionInfo.qInSelections;
  const [selectionObj] = useState({
Severity: Major
Found in src/selections-handler.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status