Preventing JS from loading in the Page Editor

The solution has been provided by the support team, they pointed me to this article.

How to use window.hsInEditor provided the answer.

In my instance it was just a matter of checking window.hsInEditor in the conditional.

jQuery(document).ready(function(){
 if( window.hsInEditor ) {
 return;
 } else {
 jQuery('.slick-group').slick({});
 }
});

Worked a treat.