# שגיאה בטעינת דוחות dashboard בעת שימוש ב-moment-jalaali.js

**URL:** <https://meta.discourse.org/t/error-in-loading-dashboard-reports-when-using-moment-jalaali-js/168909>\
**Category:** Product Support\
**Created:** [1 בנובמבר,‏ 2020,‏ 10:18am UTC](https://meta.discourse.org/t/error-in-loading-dashboard-reports-when-using-moment-jalaali-js/168909 "2020-11-01T10:18:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)\
**Post date:** [1 בנובמבר,‏ 2020,‏ 10:18am UTC](https://meta.discourse.org/t/error-in-loading-dashboard-reports-when-using-moment-jalaali-js/168909/1 "2020-11-01T10:18:50Z")

</div>

Continuing the discussion from [How to properly display jalali dates for Persian language](https://meta.discourse.org/t/how-to-properly-display-jalali-dates-for-persian-language/62157):

As mentioned above, we added the moment-jalaali script to the theme and changed the date display formats in the site’s text settings.

```
    ...
    <script src="https://cdn.jsdelivr.net/npm/moment-jalaali@0.9.2/build/moment-jalaali.js"></script>
</body>

```

By doing this, the problem of displaying the date in Hijri Shamsi was solved. But after adding the script, the dashboard reports will fail and the following error will occur.

```
Uncaught TypeError: Cannot read property 'split' of null

```

> <https://github.com/discourse/discourse/blob/ce3fe2f4c4ddf166949ee3cec3d9ecbf9108ab52/app/assets/javascripts/admin/addon/components/admin-report.js#L373-L377>

And when we debug, this error is observed.

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/9/29efdf965e69654aa7605d9fc9bf9e60f1e45d93.png)

---

_[View the full topic](https://meta.discourse.org/t/error-in-loading-dashboard-reports-when-using-moment-jalaali-js/168909)._
