Widget in Footer breaks the Map shortcode
On my client site I have a Widget in the Homepage using the map shortcode:
[vantage_listings_map]
That Widget worked OK and displayed the map as desired, however when I went to add a Widget in the footer (Vantage - Home Featured Listing), then the map shortcode breaks with the following Javascript error thrown in the browser:
slick.
js?ver=1.6.0:1279
Uncaught TypeError: Cannot read property 'add' of null
at Slick.initADA (slick.
js?ver=1.6.0:1279)
at Slick.init (slick.
js?ver=1.6.0:1265)
at new Slick (slick.
js?ver=1.6.0:180)
at jQuery.fn.init.$.fn.slick (slick.
js?ver=1.6.0:2884)
at HTMLDocument.<anonymous> ((index):992)
at i (jquery.
js?ver=1.12.4-
wp:2)
at Object.fireWith [as resolveWith] (jquery.
js?ver=1.12.4-
wp:2)
at Function.ready (jquery.
js?ver=1.12.4-
wp:2)
at HTMLDocument.J (jquery.
js?ver=1.12.4-
wp:2)