Skip to content

Commit

Permalink
fix: nothing selected bug (#6260)
Browse files Browse the repository at this point in the history
* fix: nothing selected bug

* fix: consolidate related logic for audience settings

* simplify

---------

Co-authored-by: Dan Abramov <[email protected]>
  • Loading branch information
O4FDev and gaearon authored Nov 23, 2024
1 parent f802f81 commit 9663b3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/dialogs/PostInteractionSettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ export function PostInteractionSettingsForm({
} else {
newSelected.splice(i, 1)
}
if (newSelected.length === 0) {
newSelected.push({type: 'everybody'})
}

onChangeThreadgateAllowUISettings(newSelected)
}
Expand Down

0 comments on commit 9663b3e

Please sign in to comment.