diff --git a/js/script.js b/js/script.js index c419890..feb5a66 100644 --- a/js/script.js +++ b/js/script.js @@ -25,6 +25,11 @@ $.urlParam = function(name){ }; var refreshConversation = function() { + // if no conversation selected, then don't fetch page + if (curPhoneNumber == null) { + return; + } + $.getJSON(OC.generateUrl('/apps/ocsms/get/conversation'), { 'phoneNumber': curPhoneNumber,