Showing 2 of 13 total issues
Function makeMap
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const makeMap = useCallback(() => {
const { Maps } = window.Microsoft;
// only make a new map if one doesn't already exist
if (!map.current) {
Function addPushpinsWithInfoboxes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(pushPinsToAdd, infobox, map, Maps) => {
removePushpins(map, Maps);
pushPinsToAdd.forEach((pushPin) => {
if (pushPin === null) {
return;