diff --git a/src/components/left/settings/folders/SettingsFoldersChatsPicker.tsx b/src/components/left/settings/folders/SettingsFoldersChatsPicker.tsx index 492a76eb3..fd1d6ac7a 100644 --- a/src/components/left/settings/folders/SettingsFoldersChatsPicker.tsx +++ b/src/components/left/settings/folders/SettingsFoldersChatsPicker.tsx @@ -197,16 +197,16 @@ const SettingsFoldersChatsPicker: FC = ({ onLoadMore={getMore} > {(!viewportIds || !viewportIds.length || viewportIds.includes(chatIds[0])) && ( - <> -

+
+

{lang('FilterChatTypes')}

{chatTypes.map(renderChatType)} -
-

+
+

{lang('FilterChats')}

- +
)} {viewportIds?.length ? ( diff --git a/src/lib/teact/teact-dom.ts b/src/lib/teact/teact-dom.ts index 205852a34..8d287191d 100644 --- a/src/lib/teact/teact-dom.ts +++ b/src/lib/teact/teact-dom.ts @@ -409,7 +409,7 @@ function renderChildren( function renderFastListChildren($current: VirtualElementParent, $new: VirtualElementParent, currentEl: HTMLElement) { const newKeys = new Set( $new.children.map(($newChild) => { - const key = 'props' in $newChild && $newChild.props.key; + const key = 'props' in $newChild ? $newChild.props.key : undefined; if (DEBUG && isParentElement($newChild)) { // eslint-disable-next-line no-null/no-null