0
pointlevel created
Hello!
When navigation to a page where entityhistory is included i get an syntax error in Internet Explorer(11.472.17134.0) and the page is not loading my tenants. The code it refers to is in file "aspnet-zero-core/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/view-resources/Areas/AppAreaName/Views/Tenants/Index.js":
function entityHistoryIsEnabled() {
return abp.custom.EntityHistory &&
abp.custom.EntityHistory.IsEnabled &&
_.filter(abp.custom.EntityHistory.EnabledEntities, entityType => entityType === _entityTypeFullName).length === 1;
}
Everuthing works flawlessly in Chrome without any errors.
Any idea?
2 Answer(s)
-
0
IE does not support the arrow function, we have to change to function.
-
0
Hi, it is due to javascript arrow function.
I made a PR to fix that. See https://github.com/aspnetzero/aspnet-zero-core/pull/2068.
You can apply the changes in your project if you need the fix urgently.