Last analyzed 73e26eb 3 months ago
Default analysis branch is
Currently analyzing run
Found unused objects JS-R1002
Anti-pattern
3 months ago3 months old
Avoid instantiating unused object 'new Tooltip.default(el)'.
34    if (typeof window !== "undefined" && tooltip && !disabled) {
35      import("bootstrap/js/dist/tooltip").then((Tooltip) => {
36        const el = document.querySelector(`#${id}`);
37        if (el) new Tooltip.default(el);38      });
39    }
40  }, [tooltip, disabled]);