From 02182643fdc0fce00e908ec618f4df1bfbfe5087 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 24 Mar 2025 11:25:17 -0300 Subject: [PATCH] refactor: split in multiple lines rather than one liner --- src/features/compose/containers/reply-indicator-container.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/compose/containers/reply-indicator-container.ts b/src/features/compose/containers/reply-indicator-container.ts index 5a944fb63..f7312a542 100644 --- a/src/features/compose/containers/reply-indicator-container.ts +++ b/src/features/compose/containers/reply-indicator-container.ts @@ -19,8 +19,11 @@ const makeMapStateToProps = () => { const statusId = state.compose.get(composeId)?.in_reply_to!; const editing = !!state.compose.get(composeId)?.id; + const legacyStatus = getStatus(state, { id: statusId }) as LegacyStatus; + const statusEntity = selectEntity(state, Entities.STATUSES, statusId); + return { - status: ((getStatus(state, { id: statusId }) as LegacyStatus)?.toJS() ?? selectEntity(state, Entities.STATUSES, statusId)) as StatusEntity, + status: (legacyStatus?.toJS() ?? statusEntity) as StatusEntity, hideActions: editing, }; };