mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-21 20:01:16 +00:00
Fixing reverse issue.
This commit is contained in:
parent
72f6c2657a
commit
06ed1c316b
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import { isBrowser } from "../utils";
|
|||
import { news_md } from "../translations/news";
|
||||
|
||||
const title = i18n.t("news");
|
||||
const newsReversed = news_md.reverse();
|
||||
|
||||
export class News extends Component<any, any> {
|
||||
constructor(props: any, context: any) {
|
||||
|
@ -30,7 +31,7 @@ export class News extends Component<any, any> {
|
|||
<li>
|
||||
<Link to="/releases">{i18n.t("releases")}</Link>
|
||||
</li>
|
||||
{news_md.reverse().map(v => (
|
||||
{newsReversed.map(v => (
|
||||
<li>
|
||||
<Link to={`news_item/${v.title}`}>{v.title}</Link>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue