From a7954d0e749d3a790e73ffdad66e8e9fa06307e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Fri, 26 Jan 2024 20:35:09 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E3=82=B9=E3=83=9E=E3=83=9B=E3=81=A7?= =?UTF-8?q?=E3=82=B5=E3=83=BC=E3=82=AF=E3=83=AB=E4=B8=80=E8=A6=A7=E3=81=8C?= =?UTF-8?q?=E9=81=B8=E6=8A=9E=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=20(#509)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mastodon/features/compose/components/circle_dropdown.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/compose/components/circle_dropdown.jsx b/app/javascript/mastodon/features/compose/components/circle_dropdown.jsx index d366200e2f..5bc6a8329b 100644 --- a/app/javascript/mastodon/features/compose/components/circle_dropdown.jsx +++ b/app/javascript/mastodon/features/compose/components/circle_dropdown.jsx @@ -153,7 +153,7 @@ class CircleDropdown extends PureComponent { this.props.onModalClose(); } else { this.props.onModalOpen({ - actions: this.options.map(option => ({ ...option, active: option.value === this.props.circleId })), + actions: this.options && this.options.map(option => ({ ...option, active: option.value === this.props.circleId })), onClick: this.handleModalActionClick, }); } @@ -232,6 +232,7 @@ class CircleDropdown extends PureComponent { return circle[1] ? { value: circle[1].get('id'), text: circle[1].get('title') } : null; }).filter((opt) => opt !== null); const listOption = listOptions.find((opt) => opt.value === circleId) ?? { value: '0', text: 'Unselected' }; + this.options = listOptions; return (