mirror of
https://github.com/usememos/memos.git
synced 2025-01-31 17:48:12 +08:00
fix: visibility of user preference is empty (#2581)
Fix visibility of user preference is empty
This commit is contained in:
parent
787cf2a9fe
commit
2964cf93ab
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ const PreferencesSection = () => {
|
||||||
<span className="text-sm break-keep text-ellipsis overflow-hidden">{t("setting.preference-section.default-memo-visibility")}</span>
|
<span className="text-sm break-keep text-ellipsis overflow-hidden">{t("setting.preference-section.default-memo-visibility")}</span>
|
||||||
<Select
|
<Select
|
||||||
className="!min-w-fit"
|
className="!min-w-fit"
|
||||||
value={setting.memoVisibility}
|
value={setting.memoVisibility || "PRIVATE"}
|
||||||
startDecorator={<VisibilityIcon visibility={setting.memoVisibility as Visibility} />}
|
startDecorator={<VisibilityIcon visibility={setting.memoVisibility as Visibility} />}
|
||||||
onChange={(_, visibility) => {
|
onChange={(_, visibility) => {
|
||||||
if (visibility) {
|
if (visibility) {
|
||||||
|
|
Loading…
Reference in a new issue