From 4fbbff661487cc0e26885b7683781d98fb05c6ee Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sun, 29 Oct 2023 17:48:40 +0000 Subject: [PATCH] SSR: fix transferstate block ordering --- frontend/src/app/services/websocket.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/app/services/websocket.service.ts b/frontend/src/app/services/websocket.service.ts index 5ef637332..61ac15fd3 100644 --- a/frontend/src/app/services/websocket.service.ts +++ b/frontend/src/app/services/websocket.service.ts @@ -59,6 +59,9 @@ export class WebsocketService { const { response: theInitData } = this.transferState.get(initData, null) || {}; if (theInitData) { + if (theInitData.body.blocks) { + theInitData.body.blocks = theInitData.body.blocks.reverse(); + } this.stateService.isLoadingWebSocket$.next(false); this.handleResponse(theInitData.body); this.startSubscription(false, true);