From 289ffa49f21a4d57687f66b5dd853bf7c0b42cbb Mon Sep 17 00:00:00 2001 From: redstonekasi Date: Fri, 20 Oct 2023 22:36:49 +0200 Subject: [PATCH] [UI > QuickInstall] Fix forum posts --- src/ui/quickInstall/forumPost.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ui/quickInstall/forumPost.tsx b/src/ui/quickInstall/forumPost.tsx index 459d630..367789b 100644 --- a/src/ui/quickInstall/forumPost.tsx +++ b/src/ui/quickInstall/forumPost.tsx @@ -39,12 +39,7 @@ export default () => after("default", ForumPostLongPressActionSheet, ([{ thread const url = urls[0]; if (!url) return; - /* Assuming that the actions array is at index 1 - could break in the future, but I doubt Discord - will add more to the post action sheet and - index 0 will either be quick add reactions or false. - */ - const actions = findInReactTree(res, (t) => t.props?.bottom === true).props.children.props.children[1]; + const actions = findInReactTree(res, (t) => t?.[0]?.key); const ActionsSection = actions[0].type; actions.unshift(