Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I am the only one getting errors
Message
 
 
To
All
General information
Forum:
Javascript
Category:
Other
Title:
I am the only one getting errors
Miscellaneous
Thread ID:
01610046
Message ID:
01610046
Views:
64
Hi everybody,

We have a perplexing situation here.

I've just downloaded the latest code with overwrite option, so I am certain (99%) that I am running the same code as other developers.

Yet they are not getting JavaScript errors and I do when we open the exactly same form.

I get the errors in both IE 11 and Google Chrome. The error itself does make sense to me

TypeError: Unable to get property 'atId' of undefined or null reference

(and it points to particular place in the code which has the following):
   $scope.filterAvailabilityTemplates = function (item) {
            return (item.hidden == false || item.id == $scope.currentItem.atId);
        };
Obviously this code is supposed to fail if the $scope.currentItem is not retrieved yet.

So I am wondering why would I be the only one getting these errors and not the rest of the team?

I've added two attachments. If I trace the code, I can see that it goes to that definition and at that point the $scope.currentItem is not defined.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform