mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Independent technology for modern publishing, memberships, subscriptions and newsletters.
bloggingcmscreator-economyghosthacktoberfestheadless-cmsjamstackjavascriptjournalismnodejspublishingweb-application
The exit clause of the mergeDates function should return an array rather than an object, to ensure that an array is always returned. Because we are using the concat method when recursing, this continues to work for longer lists. We want to return an empty array if list is empty, this protects against returning [undefined] |
||
---|---|---|
ghost/admin |