From 9663b3e855acfc5a4d3e61211eac253605147e93 Mon Sep 17 00:00:00 2001 From: Luke Lucas <52675277+O4FDev@users.noreply.github.com> Date: Sat, 23 Nov 2024 20:07:44 +0000 Subject: fix: nothing selected bug (#6260) * fix: nothing selected bug * fix: consolidate related logic for audience settings * simplify --------- Co-authored-by: Dan Abramov --- src/components/dialogs/PostInteractionSettingsDialog.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/dialogs/PostInteractionSettingsDialog.tsx') diff --git a/src/components/dialogs/PostInteractionSettingsDialog.tsx b/src/components/dialogs/PostInteractionSettingsDialog.tsx index 81590e3c9..8536001da 100644 --- a/src/components/dialogs/PostInteractionSettingsDialog.tsx +++ b/src/components/dialogs/PostInteractionSettingsDialog.tsx @@ -256,6 +256,9 @@ export function PostInteractionSettingsForm({ } else { newSelected.splice(i, 1) } + if (newSelected.length === 0) { + newSelected.push({type: 'everybody'}) + } onChangeThreadgateAllowUISettings(newSelected) } -- cgit 1.4.1