From dae8985e418ddd40fd11e0b841bb5fc20820e5ef 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: Thu, 15 Feb 2024 12:34:38 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20#531=20=E6=8A=95=E7=A8=BF=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=BC=E3=83=A0=E3=81=AE=E5=85=AC=E9=96=8B=E7=AF=84?= =?UTF-8?q?=E5=9B=B2=E3=81=AE=E9=81=B8=E6=8A=9E=E8=82=A2=E3=81=A7=E3=80=81?= =?UTF-8?q?=E3=82=B9=E3=83=9E=E3=83=9B=E3=81=8B=E3=82=89=E8=A6=8B=E3=82=8B?= =?UTF-8?q?=E3=81=A8=E5=B8=B8=E3=81=AB=E3=80=8C=E3=83=AD=E3=82=B0=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E3=81=AE=E3=81=BF?= =?UTF-8?q?=E3=80=8D=E3=81=8C=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=82=8B?= =?UTF-8?q?=20(#549)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/compose/components/privacy_dropdown.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx b/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx index ebfe620517..97e1e921ed 100644 --- a/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx +++ b/app/javascript/mastodon/features/compose/components/privacy_dropdown.jsx @@ -271,15 +271,15 @@ class PrivacyDropdown extends PureComponent { this.options = this.options.filter((opt) => !['mutual', 'circle'].includes(opt.value)); } - this.selectableOptions = [...this.options]; - if (!enableLoginPrivacy) { - this.selectableOptions = this.selectableOptions.filter((opt) => opt.value !== 'login'); + this.options = this.options.filter((opt) => opt.value !== 'login'); } if (!enableLocalPrivacy) { - this.selectableOptions = this.selectableOptions.filter((opt) => opt.value !== 'public_unlisted'); + this.options = this.options.filter((opt) => opt.value !== 'public_unlisted'); } + + this.selectableOptions = [...this.options]; } setTargetRef = c => {